DO NOT delete QObjects, mmmkay?

Aaron J. Seigo aseigo at
Thu Nov 8 21:17:15 GMT 2007

On Thursday 08 November 2007, Andreas Hartmetz wrote:
> All in all I have fixed three or four crashes in various KDE modules where
> QObjects were deleted while a signal/slot call involving that QObject was
> going on.

p.s. the usual solution when you need to have a QObject deleted is to call 
deleteLater() on the object instead of delete'ing it with the C++ keyword.

p.p.s. the QObject::destroyed(QObject*) signal can be very handy at times, 

Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list