qt 模态对话框和非模态对话框

1.模态对话框 (1)要想使一个对话框成为模态对话框,只须要条用它的exec()函数。 QDialog dialog(this); dialog.exec(); (2)show()函数创建模态对话框,调用函数setModal(true)函数便可。 QDialog *dialog = new QDialog(this); dialog->setModel(true); dialog->show();
相关文章
相关标签/搜索