Hello, I want to throw up a status notification while doing a network check which involves blocking system calls and may take some time. The notification will take the form of a message like "doing NW check" and a strobing animation. THis is the code:
QMovie * strobe = new QMovie( "./strobe.gif" );
QLabel * label = new QLabel( "Checking Networking ... " );
QLabel * field = new QLabel();
strobe->start();
field->setMovie( strobe );
systemCheckPage->addRow( label, field );
repaint();
qApp->processEvents();
doNetWorkCheck(); //blocks
...
Problem is - I think - the movie relies on the event loop. Not even the text label is shown. The repaint() and processEventd() dont do sqwat. Is there a better graphics class I could use that works without the event loop or another simple way around this?
Thanks.
Bookmarks