After you override those virtual function, you should call the original version to make it do original things. e.g.
Qt Code:
  1. void purge::closeEvent(QCloseEvent *e)
  2. {
  3. qDebug() << " in the close event";
  4. QDialog::closeEvent(e);
  5. }
To copy to clipboard, switch view to plain text mode