You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
595 B

#include "MainWindow.h"
#include <QtGui>
#include <QApplication>
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)
{
;
}
return false;
}
};
int main(int argc, char* argv[]) {
MyApplication app(argc, argv);
MainWindow w;
w.show();
return app.exec();
}