title: How do I catch a pyqt closeEvent and minimize the dialog instead of exiting?
body: <p>I have a QDialog object.  When the user clicks on the <code>X</code> button or presses <code>Ctrl+Q</code>, I want the dialog to go to a minimized view or system tray icon, instead of closing.  How do I do that? </p>