Grouping ThingsThe grouping commands relate classes to defined groups and modules. The groups are used when generating lists of related classes in the documentation, while the modules are elements of Qt's structure. Commands\mainclassThe \mainclass command relates the documented class to a group called mainclasses. The command must stand on its own line. / *! \class QWidget qwidget.h \brief The QWidget class is the base class of all user interface objects. \mainclass ... * / This will include the QWidget class in the mainclasses group, which means, for example, that the class will appear on the list created by calling the \generatelist command with the mainclasses argument: http://qt.nokia.com/doc/4.0/mainclasses.html Note: The Qt documentation no longer includes the mainclasses page. See also \generatelist. \ingroupThe \ingroup command indicates that the given overview or documented class belongs to a certain group of related docmentation. A class or overview may belong to many groups. The \ingroup command's argument is a group name, but note that the command considers the rest of the line as part of its argument. Make sure that the group name is followed by a linebreak. / *! \class QDir \brief The QDir class provides access to directory structures and their contents. \ingroup io ... * / This will include the QDir class in the io group, which means, for example, that QDir will appear on the list created by calling the \group command with the io argument. To list overviews that are related to a certain group, you must generate the list explicitly using the \generatelist command with the related argument. See also \group. \inmoduleThe \inmodule command relates a class to the module specified by the command's argument. For the basic classes in Qt, a class's module is determined by its location, i.e. its directory. However, for extensions, like ActiveQt and Qt Designer, a class must be related to a module explicitly. The command's argument is a module name, but note that the command considers the rest of the line as part of its argument. Make sure that the module name is followed by a linebreak. /*!
\class QDesignerTaskMenuExtension
\inmodule QtDesigner
* /
This ensures that the QDesignerTaskMenuExtension class is included in the QtDesigner module, which means, for example, that the class will appear on the list created by calling the \generatelist command with the {classesbymodule QtDesigner} argument. See also \module and \generatelist. |