[PyQt] Qt Exception Translation in Signal Handlers

Phil Thompson phil at riverbankcomputing.com
Sun Mar 13 10:15:32 GMT 2011

On Sun, 6 Mar 2011 20:04:17 -0600, Aron Bierbaum <aronbierbaum at gmail.com>
> I have attached a sample test suite that shows an issue that we are
> into. The basic issue is that if an exception is raised in a method that
> connected to a Qt signal, the exception is only printed. I know that
> translating the exception from Python to C++ and then back into Python
> difficult. But as the example shows the test suite can ignore real test
> failures. Is there some way that PyQt could be changed to at least
> translate
> the exception type that can pass through C++ and back into Python?
> Thanks,
> Aron

The normal technique is to use sys.excepthook.


More information about the PyQt mailing list