Thanks Chris, I'll need to try hideEvent() and showEvent().
changeEvent() worked great for my purposes, e.g.
Qt Code:
  1. void MainWindow::changeEvent(QEvent *event)
  2. {
  3. event->accept();
  4. if( event->type() == QEvent::WindowStateChange )
  5. {
  6. if( windowState() == Qt::WindowMinimized )
  7. {
  8. doSomething(this);
  9. }
  10. else if( windowState() == Qt::WindowNoState )
  11. {
  12. doSomethingElse(this);
  13. }
  14. }
  15. }
To copy to clipboard, switch view to plain text mode