[Qt5.1] Can I force a widget to fully show without giving back control to the event loop or use processEvents()?
Michel_ last edited by
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 continuing.
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?