View Full Version : QGraphicsView Behavior

15th October 2009, 08:48

...a couple questions regard QGraphicsView..

1) Is there a way to completely disable the effect of the scrollbars in QGraphicsView? I have set the policy so that the scrollbars to never. However when I pan the content, it seems that the to still behave as if they scrollbars were there. :confused:

2) Related to 1 - is it possible to allow pan so that the viewport/scene isn't bounded to the contents? For instance, I have an image and I'd like to center on one of the corners.


15th October 2009, 11:23
Nevermind, QGraphicsScene::setSceneRect got me what I needed.