I am having a little problem with a pop up dialog.I have a combobox,which when the option changes it pops up a dialog with a textedit widget,do some stuff and insert some text in the textedit widget.
这是我用于弹出窗口的内容:
def function_1(self):
dialog = QDialog()
dialog.ui = Ui_Dialog_popup()
dialog.ui.setupUi(dialog)
dialog.setAttribute(QtCore.Qt.WA_DeleteOnClose)
dialog.exec_()
我在一个单独的 py 文件中有在 QtDesignere 中制作的弹出 gui 代码。
弹出对话框出现,但如果对话框没有关闭,则不能执行其他任何操作。你知道我该如何处理吗?谢谢。