Contents:
https://timlehr.com/python-exception-hooks-with-qt-message-box/
Bases: QObject
QObject
Function handling uncaught exceptions. It is triggered each time an uncaught exception occurs.
Checks if a QApplication instance is available and shows a messagebox with the exception message. If unavailable (non-console application), log an additional notice.