[Qt-interest] How to write CMakeLists.txt when Q_OBJECT inxxx.cpp file
Guido Seifert
Wargand at gmx.de
Sat Jul 31 18:29:15 CEST 2010
> Its quite common, for "hidden" simple classes to have them fully declared
> in a CPP file.
>
> The usual solution is to include the generated moc_XXXX.cpp file at the
> end of the CPP file
Ah thanks, I think I have seen this once or twice. Never knew what the advantage was and somehow disliked the moc_* includes.
Hidden classes yes, but I never deemed a class, which inherits QObject and needs Q_OBJECT simple. :-)
Guido
--
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
More information about the Qt-interest-old
mailing list