[Qt-interest] QLabel is invisible after setText()
Bruno Colombet
Bruno.Colombet at univmed.fr
Fri Jan 28 12:37:43 CET 2011
Le 28/01/2011 12:34, Sergey Krupov a écrit :
> 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
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
the show() in constructor is supposed to repaint the widget, isn't it?
--
Bruno Colombet
*INSERM UMR 751* - Epilepsie et Cognition
Faculté de Médecine
27 Bd Jean Moulin
13385 Marseille cedex 05
+33 4 91 38 55 40
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110128/1f7b2dac/attachment.html
More information about the Qt-interest-old
mailing list