26 #include <qapplication.h> 28 #include "opencv/cv.h" 37 bool notify ( QObject * receiver, QEvent * event )
41 return QApplication::notify(receiver,event);
43 catch (cv::Exception &exc)
45 qWarning(
"Itom-Application has caught a cv::exception");
46 qWarning() << (exc.err).c_str() <<
" from" << receiver->objectName();
48 qFatal(
"Exiting due to exception caught. OpenCV-Exception: %s", (exc.err).c_str());
50 catch(std::exception &exc)
52 qWarning(
"Itom-Application has caught an exception");
53 qWarning() <<
"Message:" << exc.what() <<
" from" << receiver->objectName();
54 qFatal(
"Exiting due to exception caught. Exception: %s", exc.what());
58 qWarning(
"Itom-Application has caught an exception");
59 qDebug() <<
"Itom-Application caught an exception from" << receiver->objectName() <<
"from event type" <<
event->type();
60 qFatal(
"Exiting due to exception caught");