[Interest] [Qt5.1] Can I force a widget to fully show without giving back control to the event loop or use processEvents()?

Michel Rosien michel.rosien at gmail.com
Wed Aug 7 09:38:40 CEST 2013

Hello All,

I have some old code that uses a QWidget::show(), followed by a
QWidget::repaint() to show a window (with a message) before a time
consuming operation starts.
In Qt4.8 this had the intended effect of fully showing the window before
In Qt5.1 this does not show the window fully. A QApplication::processEvents
is required.

According to the documentation, repaint() doesn’t repaint when the widget
is hidden.
So probably the show() call needs the event queue to execute first before
it is fully shown?

Is there a way to fully show a (newly constructed) QWidget without giving
back control to the event loop (or using processEvents) before continuing?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130807/ba1352a9/attachment.html>

More information about the Interest mailing list