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):

Qt Code:
  1. QTimer *refreshTimer = new QTimer( this );
  2. connect( refreshTimer, SIGNAL( timeout() ), this, SLOT( SlotRefresh() ));
  3. refreshTimer->start( 100, FALSE );
To copy to clipboard, switch view to plain text mode 

SlotRefresh(): tryed it with update and repaint:

Qt Code:
  1. void mainwindow::SlotRefresh()
  2. {
  3. /*update();
  4.   qApp->processEvents();*/
  5. repaint();
  6. qApp->processEvents();
  7. }
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