PYQT5如何使对话框眨眼,以防用户错误单击父窗口或其他任何地方



pyqt5 如何使对话框眨眼,以防用户错误单击父窗口或其他任何地方。

要演示模态对话的所需行为,只是这样做:

QDialog dialogParent;
QDialog dialogChild(&dialogParent); // Note the parent-child relationship
dialogChild.setModal(true);         // Child is modal to its parent
// Show both dialogs
dialogParent.show();
dialogChild.show();

最新更新