DO NOT delete QObjects, mmmkay?

Andreas Hartmetz ahartmetz at
Thu Nov 8 20:19:01 GMT 2007

Hi all,

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.
It's documented that you should only delete a QObject when you can rule out 
that this might happen. These bugs do not trigger every time and they are a 
great way to get buggy software in user's hands. Just say no to deleting 
QObjects except if you *really* know what you're doing. Not seeing the danger 
right away does not count as knowing what you're doing.
Keep in mind that deleting a QObject deletes its children, too.


More information about the kde-core-devel mailing list