Home · Overviews · Reference · Classes codeless banner

MOC_COMPILE_EXCEPTIONS

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 Trolltech
Qt Extended - QBuild Maintainer Guide