[Qt-interest] QLabel is invisible after setText()

Sergey Krupov sergey.krupov.1 at gmail.com
Fri Jan 28 12:34:01 CET 2011


28.01.11 16:24, Bruno Colombet ?????:
> I have a strange behavior problem since yesterday as I decided to 
> implement a kind of "PleaseWait" Widget.
>
> void someMethod()
> {
>     PleaseWaitWidget wait(QString("Wait for me"));
>
>     ...
>     ...
>
>     // End of calculation and end of method
> }
>
>
> The widget appears and disappears but QLabel still shows 
> nothing.Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
The reason is while someMethod() is executing application's event loop 
does not process events, including QPaintEvent, in which QLabel is been 
repainted

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110128/0e3081f2/attachment.html 


More information about the Qt-interest-old mailing list