[PyQt] Re: QApplication destructor

Phil Thompson phil at riverbankcomputing.co.uk
Sat Oct 10 11:37:33 BST 2009


On Fri, 09 Oct 2009 18:00:06 +0200, Giovanni Bajo <rasky at develer.com>
wrote:
> Hi Phil,
> 
> The %MethodCode of QApplication's dtor (qapplication.sip) doesn't call 
> the C++ destructor. There is a long comment about the order of 
> destruction of top-level widgets vs QApplication, but I can't read it so 
> to imply that it shouldn't call the C++ dtor -- it looks like a genuine
> bug.

Yes, and the bug is in SIP as the docs specifically say that the generated
code will call the dtor.

Fixed in tonight's snapshot - but I'd strongly recommend testing for any
crash-on-exit problems.

Phil


More information about the PyQt mailing list