[PyQt] object using deleteLater(), signal destroyed() not emitted

Phil Thompson phil at riverbankcomputing.com
Sun Nov 15 22:08:18 GMT 2009

On Sun, 15 Nov 2009 20:53:44 +0100, Wilbert Berendsen <wbsoft at xs4all.nl>
> Hi,
> in recent sip releases (on my Karmic system, 4.9.1-snapshot), the signal 
> destroyed() is not emitted (as least not by PyQt) when a remote object 
> destroys itself using deleteLater().
> in sip 4.7.9 it works perfectly.  The qobject in question is a KDE
> part (KonsolePart) that destroys itself using deleteLater() when the user
> logs 
> out of the terminal. I want to notice the logout and hide the widget, 
> recreating the part when the terminal view is requested again.
> But as said, in sip 4.9.1.x the slot connected to the part's destroyed() 
> signal is not called. Attached is a small (KDE) test app to demonstrate
> problem.
> Is this a bug or should I use another way of doing this?
> Attached the small test app. When the user logs out the terminal, a
> should be printed on stdout.

Fixed in current snapshots.


More information about the PyQt mailing list