Not sure if this works ;-) First of all graphicsview viewport updates are controlled by QGraphicsView::ViewportUpdateMode. Not sure if a set to QGraphicsView::NoViewportUpdate will also prevent updates when resizing. That's one part.
The other part should be hopefully in QGraphicsView::resizeEvent (or sublcass), where probably a call to update is done to redraw the view. This is something you want to prevent it resize events come in quickly.
So best maybe is to derive from QGraphicsView and override resizeEvent. There you might want to use QTime, especially the elapsed() method to check if the ui came to rest. If the ui came to rest, you need to call QGraphicsView::reszizeEvent(...)
Haven't tried it but sounds at least at something you may want to try out ;-) If it works, please post your solution. Thanks




Reply With Quote
Bookmarks