Hi John, 

 

I would suggest a short single-shot timer roughly:

 

resizeEvent

                base::resizeEvent

                if !mTimer.isRunning

                                mTimer.start

 

paintEvent

                if !mTimer.isRunning

                                base::paintEvent

 

timer slot:

                repaint

 

I'm not sure whether overriding the paintEvent is enough to prevent the
child widgets from painting. 

 

Good luck - please let the group know what you decide with this. 

 

Tony

 

 

From: interest-bounces+tony=rightsoft.com...@qt-project.org
[mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of
John Weeks
Sent: Tuesday, 25 February 2014 8:56 AM
To: Interest@qt-project.org Interest
Subject: [Interest] Finished resizing a window?

 

We have windows in our application that are potentially expensive to
repaint, so when the user resizes a window we may need to put off repainting
until the resizing is finished. It seems that we don't get mouse down/mouse
up events when the user clicks in the window frame/resize grip area, so I
can't wait until mouse up.

 

Is that correct?

Is there a solution to this?

 

Thanks!

 

-John Weeks

 

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to