The Qt Library

Adds support for the Qt™ library, distributed by Trolltech. Qt is a toolkit for graphical user interfaces, and forms the basis for the KDE Desktop environment. Qt adds a form of introspection to C++ as well as a way to loosely couple components through the signals and slots mechanism.

The Qt module attempts to automatically locate the Qt libraries and headers on your system. If this fails, an error will be printed. You can set the environment variable QTDIR to tell Aap where Qt is installed if the automatic detection does not find it.

When the Qt module is loaded, an additional source file type ui is added; these are files created by Qt's Designer application which describe a GUI. You can list a .ui file as a source file in any program, library or other Aap target. The .ui files are processed by uic to produce C++ code which is later compiled.

As part of the Qt object system, header files (and sometimes C++ sources) are progessed to create moc (Meta Object Compiler) files; these .moc files are typically included from the C++ code. The Qt module for Aap automatically detects this additional dependency and processes headers and C++ sources appropriately.

[Note]Note
You must use headername.moc and not headername.moc.cpp for the .moc files -- the former is the usual style of the KDE project, the latter appears only infrequently.