模态对话框VS非模态对话框

模态对话框VS非模态对话框 模态对话框:此对话框关闭后,它的上一级对话框才可操作 非模态对话框:两个对话框可同时操作 代码实现 例如:在MainWindow中,利用pushButton打开新的对话框 void MainWindow::on_pushButton_clicked() { //非模态对话框 QDialog *dlg = new QDialog(this); dl
相关文章
相关标签/搜索