PDA

View Full Version : Auto scroll in QGraphicview/QGraphicsecene?



jujose
13th May 2010, 07:58
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

MasterBLB
13th May 2010, 11:00
Try QGraphicsView::scroll() function