Report question

Question: How do I catch a pyqt closeEvent and minimize the dialog instead of exiting?