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  · 

Reporting Status

These commands are for indicating that a documented element is still under development, is becoming obsolete, is provided for compatibility reasons, or is simply not to be included in the public interface. The \since command is for including information about the version when a function or class first appeared.

\compat

The \compat command is for indicating that a class or function is part of the support library provided to keep old source code working.

The command must stand on its own line.

Usually an equivalent function or class is provided as an alternative.

If the command is used in the documentation of a class, the command expands to a warning that the referenced class is part of the support library. The warning is located at the top of the documentation page.

 / *!
     \class MyQt3SupportClass
     \compat
 * /

QDoc renders this at the top of the MyQt3SupportClass class reference page.

This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See the Porting Guide for more information.

If the command is used when documenting a function, QDoc will create and link to a separate page documenting Qt 3 support members when generating the reference documentation for the associated class.

 / *!
     \fn MyClass::MyQt3SupportMemberFunction
     \compat

     Use MyNewFunction() instead.
 * /

QDoc renders this in myclass-qt3.html as:

Qt 3 Support Members for MyClass

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

...

  • void MyQt3SupportMemberFunction()
  • ...

Member Function Documentation

void MyQt3SupportMemberFunction ()

Use MyNewFunction() instead.

...

\default

The \default command is for marking a QML property as the default property. The word default is shown in red in the documentation of the property.

 / *!
     \qmlproperty list<Change> State::changes
     This property holds the changes to apply for this state
     \default

     By default these changes are applied against the default state. If the state
     extends another state, then the changes are applied against the state being
     extended.
 * /

See how QDoc renders this property on the reference page for the State type.

\obsolete

The \obsolete command is for indicating that a function is being deprecated, and it should no longer be used in new code. There is no guarantee for how long it will remain in the library.

The command must stand on its own line.

When generating the reference documentation for a class, QDoc will create and link to a separate page documenting its obsolete functions. Usually an equivalent function is provided as an alternative.

 / *!
     \fn MyClass::MyObsoleteFunction
     \obsolete

     Use MyNewFunction() instead.
 * /

QDoc renders this in myclass-obsolete.html as:

Obsolete Members for MyClass

The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

...

  • void MyObsoleteFunction() (obsolete)
  • ...

Member Function Documentation

void MyObsoleteFunction ()

Use MyNewFunction() instead.

...

\internal

The \internal command indicates that the referenced function is not part of the public interface.

The command must stand on its own line.

QDoc ignores the documentation as well as the documented item, when generating the associated class reference documenation.

 / *!
     \internal

     Tries to find the decimal separator. If it can't find
     it and the thousand delimiter is != '.' it will try to
     find a '.';
 * /
 int QDoubleSpinBoxPrivate::findDelimiter
         (const QString &str, int index) const
 {
     int dotindex = str.indexOf(delimiter, index);
     if (dotindex == -1 && thousand != dot && delimiter != dot)
         dotindex = str.indexOf(dot, index);
     return dotindex;
 }
 

This function will not be included in the documentation.

\preliminary

The \preliminary command is for indicating that a referenced function is still under development.

The command must stand on its own line.

The \preliminary command expands to a notification in the function documentation, and marks the function as preliminary when it appears in lists.

 / *!
     \preliminary

     Returns information about the joining properties of the
     character (needed for certain languages such as
     Arabic).
 * /
 QChar::Joining QChar::joining() const
 {
     return ::joining(*this);
 }

QDoc renders this as:

Joining QChar::joining () const

This function is under development and subject to change.

Returns information about the joining properties of the character (needed for certain languages such as Arabic).

And the function's entry in QChar's list of functions will be rendered as:

  • ...
  • Joining joining() const (preliminary)
  • ...

\since

The \since command tells in which minor release the associated functionality was added.

 / *!
     \since 4.1

     Returns an icon for \a standardIcon.

     ...

     \sa standardIconImplementation(), standardPixmap()
 * /
 QIcon QStyle::standardIcon(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const
 {
 }

QDoc renders this as:

QIcon QStyle::standardIcon(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const

This function was introduced in Qt version 4.1

Returns an icon for standardIcon.

...

See also standardIconImplementation() and standardPixmap()(obsolete).

QDoc generates the "Qt" reference from the project configuration variable. For that reason this reference will change according to the current documentation project.

See also project.

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