[Qt-interest] If I start a long(ish) Qt drawing process, how can I know when it has completed?
Ross Bencina
rossb-lists at audiomulch.com
Tue Nov 16 03:48:34 CET 2010
Atlant Schmidt wrote:
> How can I find out when Qt has completed all of the re-painting that
> it needs to do to fully-present the new screen to the user?
I can't answer your question directly but here's an idea:
At the point when you're changing screens, install a global event filter
that rejects all mouse events and flush all mouse events out of the queue.
Also install a 0ms one-shot timer -- that will get called when the event
loop is idle after the painting. Then do all your layout changes.
In the timer callback remove your global event filter and perhaps flush
mouse events out of the queue again (although I don't think that's needed).
Would that work?
Perhaps there's an easier way...
Ross.
More information about the Qt-interest-old
mailing list