Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.14.0
-
None
-
Windows 10 Pro 1909 (Build 18363.535)
Python 3.6.8 64-bit
Description
I can't seem to destroy a QApplication instance using del operator or quit() using PySide2 5.14.0.
Here is a sample Python program to reproduce the issue:
import sys from PySide2.QtWidgets import * app = QApplication(sys.argv) label = QLabel("Hello World") label.show() app.exec_() del app app = QApplication(sys.argv) label = QLabel("Hello World") label.show() app.exec_() sys.exit()
I get an error saying:
"RuntimeError: Please destroy the QApplication singleton before creating a new QApplication instance."
PyQt5 works without an error using this same code.