13 #ifndef QmitkSafeApplication_h
14 #define QmitkSafeApplication_h
18 #include <QApplication>
19 #include <QMessageBox>
54 bool notify(QObject *receiver, QEvent *event)
override;
#define MITKAPPUTIL_EXPORT
A QApplication subclass that optionally catches unhandled exceptions in the Qt event loop.
QmitkSafeApplication(int &argc, char **argv, bool safeMode=true)
Construct a QmitkSafeApplication.
bool getSafeMode() const
Query whether safe mode is currently enabled.
void setSafeMode(bool safeMode)
Enable or disable safe mode.
bool notify(QObject *receiver, QEvent *event) override
Reimplements QApplication::notify() to catch unhandled exceptions.