Home · Overviews · Reference · Classes |
If you use Q_PRIVATE_SLOT() you need to do #include "moc_foo.cpp" in foo.cpp but this breaks QBuild because it can't "see" the include. To work around this you must specify foo.h as a moc compile exception.
HEADERS+=foo.h SOURCES+=foo.cpp MOC_COMPILE_EXCEPTIONS+=foo.h
See also QBuild Variables, QBuild Script, and MOC_IGNORE.
Copyright © 2009 Nokia | Qt Extended - QBuild Maintainer Guide |