qtopengl_application.cpp
Go to the documentation of this file.
1 
7 #include "qtopengl_application.h"
8 
9 #include <argos3/core/utility/logging/argos_log.h>
10 
11 #include <typeinfo>
12 
13 namespace argos {
14 
15  /****************************************/
16  /****************************************/
17 
18  bool CQTOpenGLApplication::notify(QObject* pc_receiver,
19  QEvent* pc_event) {
20  try {
21  return QApplication::notify(pc_receiver, pc_event);
22  } catch (std::exception& ex) {
23  fprintf(stderr, "%s\n", ex.what());
24  QApplication::exit(1);
25  } catch (...) {
26  qFatal("Error <unknown> sending event %s to object %s (%s)",
27  typeid(*pc_event).name(),
28  qPrintable(pc_receiver->objectName()),
29  typeid(*pc_receiver).name());
30  }
31  /* Should never get here */
32  return false;
33  }
34 
35  /****************************************/
36  /****************************************/
37 
38 }
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
virtual bool notify(QObject *pc_receiver, QEvent *pc_event)