On sexta-feira, 26 de outubro de 2012 17.06.44, Till Oliver Knoll wrote: > Good practise is probably to *always" add Q_OBJECT to all > QObject-derived classes, because if you don't, chances are that you > simply forgot and qobject_cast fails in a subtle way: the result of > the cast will simply be "different" aka "wrong".
It should produce a compilation error if you do that. http://blog.qt.digia.com/2007/02/26/new-feature-compiler-errors/ -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
