PDA

View Full Version : how to implement QApplication.notify()



di_zou
9th February 2010, 15:42
I am getting this error:

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.

terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc


So I put:

def notify(self, receiver, event):

I want to see what function is throwing the exception and what the exception is. What do I have to put in the notify function to do this?

I am using Python but help in C++ would be welcome too.

di_zou
15th February 2010, 19:12
Can I get some help?