#include "MainWindow.h" #include #include class MyApplication : public QApplication { public: MyApplication(int& argc, char** argv) : QApplication(argc, argv) { } virtual ~MyApplication() { } //reimplemented from QApplication so we can throw exceptions in slots // virtual bool notify(QObject* receiver, QEvent* event) { // try { // return QApplication::notify(receiver, event); // } // catch(std::exception& e) // { // qDebug() << "e exception " << e.what(); // ; // } // return false; // } }; int main(int argc, char* argv[]) { MyApplication app(argc, argv); MainWindow w; w.show(); return app.exec(); }