Results 1 to 2 of 2

Thread: Auto scroll in QGraphicview/QGraphicsecene?

  1. #1
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Auto scroll in QGraphicview/QGraphicsecene?

    Hi,

    I am using QGraphicview/QGraphicsecene to draw a sequence chart. I am drawing continuously to the scene. My problem is scroll bar is always stay in the top. I want to automatically scroll down when a new item drawn in the scene.

    I tried with
    view->verticalScrollBar()->setValue(somevalue);

    seems not working... did i miss anthing?

    please help.

    Thanks
    jujose

  2. #2
    Join Date
    Sep 2008
    Location
    Poland
    Posts
    80
    Thanks
    4
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Auto scroll in QGraphicview/QGraphicsecene?

    Try QGraphicsView::scroll() function

Similar Threads

  1. QPlainTextEdit auto scroll
    By faldzip in forum Qt Programming
    Replies: 5
    Last Post: 13th January 2010, 18:11
  2. QTableView and auto scroll
    By ranna in forum Qt Programming
    Replies: 0
    Last Post: 23rd March 2009, 13:02
  3. Auto scroll down in QScrollArea
    By EricF in forum Qt Programming
    Replies: 2
    Last Post: 29th December 2008, 12:51
  4. my QGraphicView problem
    By irmakci in forum Qt Programming
    Replies: 3
    Last Post: 19th July 2008, 18:40
  5. QTextEdit + auto scroll
    By jbpvr in forum Qt Programming
    Replies: 7
    Last Post: 25th March 2008, 09:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.