31 #include <QApplication> 48 MyApp(
int &argc,
char **argv) {}
53 void processEvents() {
58 class MyApp :
public QApplication {
60 MyApp(
int &argc,
char **argv) : QApplication(argc, argv) {}
61 virtual bool notify( QObject *receiver, QEvent *event ) {
63 return QApplication::notify(receiver, event);
64 }
catch (
const std::exception &e) {
65 std::cerr << e.what() << std::endl;
75 #endif // end of namespace MARS_H This function provides a clean exit of the simulation in case of a kill-signal.
Copyright 2012, DFKI GmbH Robotics Innovation Center.
MyApp(int &argc, char **argv)
virtual bool notify(QObject *receiver, QEvent *event)