QApplication::notify reimplementation
I know this is obviously not a new question but so far I have not been able to get it to work. So here is my code. It compiles but when I run it and execute a throw() within my MainWindow class, the throw() seems to get caught by the reimplemented notify, but the notify method seems to keep getting called over and over again until I eventually get a SIGABRT. What am I doing wrong?
Code:
#include <QtGui/QApplication>
#include "mainwindow.h"
{
public:
virtual ~App(){}
{
try
{
}
catch(std::exception& e)
{
}
return false;
}
};
int main(int argc, char *argv[])
{
App a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}