Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Gui 编程的新手。我正在使用 PySide。我想问的是,当从主窗口启动对话框时,是否有一种方法可以使父窗口不可见。还如何使窗口在退出对话框时重新出现。
所有小部件都有隐藏和显示功能,可用于实现您想要的:
parent.hide() dialog = QtGui.QDialog() dialog.exec_() parent.show()