A New Krazy Checker for Classes Requiring Q_OBJECT

David Faure faure at kde.org
Sat May 12 23:25:48 BST 2007


On Friday 11 May 2007, Thiago Macieira wrote:
>  If you don't need any
> of the Meta Object features (properties, signals, slots, enums, className,
> qobject_cast, the meta object itself, etc.) why are you deriving from
> QObject in the first place? :-)

I often saw code deriving from QObject just to get "auto-deletion of children by the parent object".

But yeah, adding the macro doesn't hurt.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list