(Dec-27-2020, 09:18 PM)deanhystad Wrote: I expect that Qt has an exception handler that catches the exception raised in the keypressEvent(). No such exception handler is ready to catch the exception raised in the __init_() method.
This is exactly the behavior I expect.
When sys.excepthook is not overridden, an exception in keyPressEvent() exits the app. Why this behavior is not restored once sys.__excepthook__() is called?