But what is the problem?
But what is the problem?
I want to catch "mouseReleaseEvent" on the border of the main window to redraw the components inside the main window. During resizeEvent, I can't draw the window because it has 60.000 components. I can only draw one time after finishing resizing so that It can be faster. Thanks!
In resizeEvent() check QApplication::mouseButtons() and only do the update if the left mouse isn't pressed.
I'm afraid resizeEvent will post a paintEvent by itself, so this is not a solution. I suggest optimizing the painting routine and maybe use the Graphics View framework to speed things up.
Bookmarks