QDialog::closeEvent(QCloseEvent *evnt){ if (!closeDialog) evnt->ignore(); QDialog::closeEvent(evnt);}