Where am I supposed to reimplement QApplication::notify function? What I mean is, which class? One of my own classes or subclass some of Qt’s class and do it there? I need this because I’m getting the following error while downloading file from a server(small files are downloaded ok, but large ones cause this msg):
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
Just subclass
QApplicationand in yournotify(..)method do something like this:Then use it in your main function instead of
QApplication.