Hi !

I also have the problem with the systrayicon and minimize
so i try following ...

Qt Code:
  1. // Overload original event-handler:
  2. bool MainWindow::event(QEvent *evt)
  3. {
  4. // Check if Window-State changed to minimize ...
  5. if(evt->type() == QEvent::WindowStateChange)
  6. {
  7. //Now check to see if the window is minimised
  8. if (isMinimized())
  9. {
  10. // Call the Hide Slot after 250ms
  11. // to prozess other events ....
  12. qApp->processEvents();
  13. QTimer::singleShot(250, this, SLOT(hide()));
  14. evt->ignore();
  15. }
  16. }
  17. // Call original-handler (in this case QMainWindow ...)
  18. return QMainWindow::event(evt);
  19. }
To copy to clipboard, switch view to plain text mode 

... this work's on windows !