QGraphicsView repaint problem.
General and Desktop
4
Posts
2
Posters
2.4k
Views
1
Watching
-
wrote on 11 Feb 2013, 08:25 last edited by
I've got class based on QGraphicsView. And I need to redraw some QGraphicsItem inside. I do this: @station->update(station->boundingRect());
invalidateScene(sceneRect(),QGraphicsScene::AllLayers);
updateSceneRect(sceneRect());@ where station is my QGraphicsItem based class object. But it update not full object, only a part of it. When i move mouse inside widget which contains view it repaints. What is the reason ? -
wrote on 11 Feb 2013, 11:07 last edited by
maybe your items boundingrect is implemented incorrectly?
-
wrote on 11 Feb 2013, 16:51 last edited by
How can i repaint all my scene ?
-
wrote on 11 Feb 2013, 17:13 last edited by
myQGraphicsView->update() might do that :)
1/4