feat(qt_utils): added error handle utility with popup messageBoxes
Description
- General utility to display any raise error as a message box with traceback to user. Can be activated globally or jsut for certain methods with decorator
@error_managed
. Very useful for developing standalone waveform widget. - Warning message box with simple API to raise warning.
Related Issues
related to #243 (closed)
Type of Change
- New utility for automatic error display as message box
Potential side effects
Decorator do not fully work with PyQt6 and can lead to crash of app in some cases, due to fact that in PyQt6 unhandled exceptions in slot methods can cause the application to crash because the exceptions propagate back to the Qt event loop, which is not designed to handle them. I don't know how to fix it at the moment.
Screenshots / GIFs (if applicable)
[Include any relevant screenshots or GIFs to showcase the changes made.]
Additional Comments
There is a small test example in the qt_utils/error_popups
for you to check the functionality. Be aware that this can crash with PyQt6 environments!
Definition of Done
-
Documentation is up-to-date.
Edited by wyzula_j