QDialog *MyWinModal; MyWinModal = new QDialog(); MyWinModal->setModal(true); MyWinModal->setWindowModality(Qt::ApplicationModal); if (MyWinModal->exec() == QDialog::Accepted) { }
C++ (Qt)QDialog MyWinModal (this);MyWinModal.setModal(true);if (MyWinModal.exec() == QDialog::Accepted){}