[Qt-interest] How to write CMakeLists.txt when Q_OBJECT in xxx.cpp file

Guido Seifert Wargand at gmx.de
Sat Jul 31 18:04:18 CEST 2010




> Thank you, but this does not work if your xxx.cpp file contains Q_OBJECT.

Come to think about this, does this even work? I mean Q_OBJECT in .cpp not in .h?  Q_OBJECT belongs in the class declaration, which is usually found in the header. Should not even compile if you have signals or slots in your header.

Guido

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01



More information about the Qt-interest-old mailing list