Details
Description
Consider the following code:
import sys from PySide2 import QtWidgets def on_pressed(): priknt("world") # misspelled app = QtWidgets.QApplication(sys.argv) button = QtWidgets.QPushButton("Hello") button.pressed.connect(on_pressed) button.show() app.exec_()
When I hit the button, there's an error since the function "priknt" doesn't exist.
- With PySide2, the UI will freeze up and not generate a traceback in the terminal
- With PyQt5, the UI will crash instantly and generate a traceback in the terminal
- With PySide and PyQt4, the UI will keep being functional and generate a traceback in the terminal
Would it be possible to achieve the same functionality as seen in PySide/PyQt4 where the UI doesn't freeze or crash instantly?
My motivation behind this is I really prefer "nothing happens when I click the button!" instead of "aaaw f@ยข$, I lost all my work!".
Attachments
Issue Links
- relates to
-
PYSIDE-360 Missing python error handling in SignalManager::callPythonMetaMethod
- Closed
-
PYSIDE-478 QEvents stop getting processed when an unhandled Python exception is set
- Closed