QMdiSubWindow with QGraphicsView not always fully drawn
-
Hello,
I have a QMdiSubWindow with QGraphicsView inside. There is a problem with rendering this window when it is being resized beyond some (seems to cached) size, see Picture 1
"!https://drive.google.com/file/d/0B9uPV8rcbVu8d21UN2dSV1JyOFU/edit?usp=sharing(Picture 1)!":https://drive.google.com/file/d/0B9uPV8rcbVu8d21UN2dSV1JyOFU/edit?usp=sharing
When I minimize and restore this window it is getting redrawn correctly, see Picture 2
"!https://drive.google.com/file/d/0B9uPV8rcbVu8bXRLZ3Z3MU5aRXM/edit?usp=sharing(Picture 2)!":https://drive.google.com/file/d/0B9uPV8rcbVu8bXRLZ3Z3MU5aRXM/edit?usp=sharing
This last fully redrawn size seems to be somehow "remembered" as maximum for the following attempts to resize window further. Window is redrawn correctly if I move low-right corner to make window smaller. But when I move mouse to enlarge the window that remembered (after last minimize/restore) size acts as maximum rendering rectangle. Everything beyond this rectangle is not redrawn. The "logical" state of resize seems to work correctly - I can move low-right corner as much I want. When I release mouse button all I have to do to get entire window redrawn is to minimize/restore it again. It will then be redrawn up to the point where I released mouse and this will become new "draw clipping" rectangle - until next minimize/restore operation.
Does anyone have an idea how can I force entire QMdiSubWindow to be redrawn while I am resizing it? (I tried update(), repaint(), ...)
Thank you!