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

Paul Miller paul at fxtech.com
Fri Jan 28 14:36:12 CET 2011


On 1/28/2011 6:29 AM, André Somers wrote:
> On Friday 28 January 2011 13:02:07 Bruno Colombet wrote:
>
>> Ok thank you for the link.
>> I'm already using threads in my application. That Widget was just to
>> warn users for some unresponsive UI during relatively short time.
>
> In that case, perhaps a QApplication::processEvents() call is all you need. I
> am not a big fan of using it in the general case, but to make sure your
> warning for a short freeze is actually painted, perhaps it would be a
> solution. A better way is of course to make sure that your UI simply does not
> become unresponsive, not even for a short while. However, I realize that that
> is not always feasable.

I use processEvents() during long waits with a progress bar - works fine.
But for SHORT waits why not just use a busy cursor? Depends on what you 
mean by short I guess, but for short occasional delays of 1-2 seconds I 
use a wait cursor.



More information about the Qt-interest-old mailing list