30 #include <QApplication> 43 class MyApp :
public QApplication {
45 MyApp(
int &argc,
char **argv) : QApplication(argc, argv) {}
46 virtual bool notify( QObject *receiver, QEvent *event ) {
48 return QApplication::notify(receiver, event);
49 }
catch (
const std::exception &e) {
50 std::cerr << e.what() << std::endl;
59 #endif // end of namespace MY_VIZ_APP_H virtual bool notify(QObject *receiver, QEvent *event)
Copyright 2012, DFKI GmbH Robotics Innovation Center.
This function provides a clean exit of the simulation in case of a kill-signal.
MyApp(int &argc, char **argv)