Grouping Things
The 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
\mainclass
The \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://doc.qt.digia.com/4.0/mainclasses.html
Note: The Qt documentation no longer includes the mainclasses page.
See also \generatelist.
\ingroup
The \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.
\inmodule
The \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, namely 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 Qt Designer 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.
© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.