QGraphicsScene::setSceneRect() does not update immediately
jj382 last edited by jj382
Setting scene rectangle using
QGraphicsScene::setSceneRect()ocasionally does not result in change of the scene until after a resize event takes place.
- Why is this the case?
- How can I force the QGraphicsScene to respect the scene assigned to it immediately
jj382 last edited by
(One?) Solution is to call
QGraphicsView( QRectF )with
QGraphicsScene::sceneRect()immediately after assigning a new scene rectangle.