[PyQt] how to implement QApplication.notify()

David Boddie david at boddie.org.uk
Wed Feb 10 01:28:16 GMT 2010


On Mon, 8 Feb 2010 06:24:43 -0800 (PST), dizou wrote:

> 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.

I think this will only work if you are writing C++ code, unless there
happens to be support for handling C++ exceptions in PyQt, which I
don't think there is. :-(

I'm not sure how you would handle this in Python, or if it's even
possible to do so.

David


More information about the PyQt mailing list