Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

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://qt.nokia.com/doc/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, 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.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web