PDA

View Full Version : How to increase size of QGraphicsView Dynamically



Kingofhearts_sri
23rd January 2009, 05:41
Hi,
I have a mainwindow with QHBoxLayout, where in QHBoxLayout there are two items One is toolbox and other is my QGraphicsView which renders a scene item with a fixed size.
Now I want to increase the size of that view if the user click the QGraphicsItem out of the boundry of scene.
Is there any property for view to increase the sceneRect dynamically.
with regards,
srik.

h123
23rd January 2009, 08:54
did u tried QGraphicsView::resize() ?