|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Go to the source code of this file.
Functions | |
| template<class A > | |
| bool | QmitkSafeNotify (A *app, QObject *receiver, QEvent *event) |
| Safely delivers a Qt event, catching and displaying any exceptions. More... | |
| bool QmitkSafeNotify | ( | A * | app, |
| QObject * | receiver, | ||
| QEvent * | event | ||
| ) |
Safely delivers a Qt event, catching and displaying any exceptions.
Wraps a call to QApplication::notify() in a try/catch block. If an exception is thrown during event delivery, a critical QMessageBox is shown to the user with the option to exit the application or ignore the error.
| A | A QApplication-derived type whose notify() method is to be called. |
| app | Pointer to the application instance. |
| receiver | The QObject that should receive the event. |
| event | The QEvent to deliver. |
Definition at line 38 of file QmitkSafeNotify.h.
References MITK_ERROR.