QGraphicsScene::setSceneRect() does not update immediately
Solved
General and Desktop
-
wrote on 1 Dec 2015, 06:01 last edited by jj382 12 Jan 2015, 06:07
Setting scene rectangle using
QGraphicsScene::setSceneRect()
ocasionally does not result in change of the scene until after a resize event takes place.Questions:
- Why is this the case?
- How can I force the QGraphicsScene to respect the scene assigned to it immediately
-
wrote on 1 Dec 2015, 06:10 last edited by
(One?) Solution is to call
QGraphicsView( QRectF )
withQRectF
obtained fromQGraphicsScene::sceneRect()
immediately after assigning a new scene rectangle.
1/2