Qt 6.11 is out! See what's new in the release
blog
QGraphicsScene::setSceneRect() does not update immediately
-
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
-
(One?) Solution is to call
QGraphicsView( QRectF )withQRectFobtained fromQGraphicsScene::sceneRect()immediately after assigning a new scene rectangle.