I have a mainwindow that is derived from QMainwindow and that uses a number of dockwindows and has qworkspace as its central widget (for MDI purposes). Some of the processes I run are very lengthy. If I minimize my application to do something meanwhile, the mainwindow does not refresh on showing. I tryed to force this using the following timer (code in constructor of mainwindow):
connect( refreshTimer, SIGNAL( timeout() ), this, SLOT( SlotRefresh() ));
refreshTimer->start( 100, FALSE );
QTimer *refreshTimer = new QTimer( this );
connect( refreshTimer, SIGNAL( timeout() ), this, SLOT( SlotRefresh() ));
refreshTimer->start( 100, FALSE );
To copy to clipboard, switch view to plain text mode
SlotRefresh(): tryed it with update and repaint:
void mainwindow::SlotRefresh()
{
/*update();
qApp->processEvents();*/
repaint();
qApp->processEvents();
}
void mainwindow::SlotRefresh()
{
/*update();
qApp->processEvents();*/
repaint();
qApp->processEvents();
}
To copy to clipboard, switch view to plain text mode
I even tryed to call update on one of the dockwindows used, but that doesn't work either 
Any ideas?
Thanx
Bookmarks