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  · 

Special Content

The document contents commands identify parts of the documentation, i.e. parts with a special rendering, conceptual meaning or function.

\abstract

The \abstract and \endabstract commands delimit a document's abstract section.

The abstract section is rendered as an indented italicized paragraph.

Warning: The \abstract and \endabstract commands have not been implemented. The abstract section is rendered as a regular HTML paragraph.

\quotation

The \quotation and \endquotation commands delimit a long quotation.

The text in the delimited block is surrounded by <blockquote> and </blockquote> in the html output, e.g.:

 / *!
   While the prospect of a significantly broader market is
   good news for Firstlogic, the notion also posed some
   challenges. Dave Dobson, director of technology for the La
   Crosse, Wisconsin-based company, said:

   \quotation
      As our solutions were being adopted into new
      environments, we saw an escalating need for easier
      integration with a wider range of enterprise
      applications.
   \endquotation
 * /

The text in the \quotation block will appear in the generated HTML as:

 <blockquote>
   <p>As our solutions were being adopted into new environments,
   we saw an escalating need for easier integration with a wider
   range of enterprise applications.</p>
     </blockquote>

The built-in style sheet for most browsers will render the contents of the <blockquote> tag with left and right indentations. The example above would be rendered as:

As our solutions were being adopted into new environments, we saw an escalating need for easier integration with a wider range of enterprise applications.

But you can redefine the <blockquote> tag in your style.css file.

\footnote

The \footnote and \endfootnote commands delimit a footnote.

The footnote is rendered at the bottom of the page.

Warning: The \footnote and \endfootnote commands have not been implemented. The footnote is rendered as a regular HTML paragraph.

\tableofcontents

The \tableofcontents command has been disabled because QDoc now generates a table of contents automatically.

The automatically generated table of contents appears in the upper righthand corner of the page.

\brief

The \brief command introduces a one-sentence description of a class, namespace, header file, property or variable.

The brief text is used to introduce the documentation of the associated object, and in lists generated using the \generatelist command and the \annotatedlist command.

The \brief command can be used in two significant different ways: One for classes, namespaces and header files, and one for properties and variables.

When the \brief command is used to describe a property or a variable, the brief text must be a sentence fragment starting with "whether" (for a boolean property or variable) or starting with "the" (for any other property or variable).

For example the boolean QWidget::isWindow property:

        / *!
            \property QWidget::isActiveWindow
            \brief whether this widget's window is the active window

            The active window is the window that contains the widget that
            has keyboard focus.

            When popup windows are visible, this property is true
            for both the active window \e and for the popup.

            \sa activateWindow(), QApplication::activeWindow()
        * /
        

and the QWidget::geometry property

        / *!
            \property QWidget::geometry
            \brief the geometry of the widget relative to its parent and
            excluding the window frame

            When changing the geometry, the widget, if visible,
            receives a move event (moveEvent()) and/or a resize
            event (resizeEvent()) immediately.

            ...

           \sa frameGeometry(), rect(), ...
        * /

QDoc renders this as:

geometry : QRect

This property holds the geometry of the widget relative to its parent and excluding the window frame.

...

Access functions:

  • const QRect & geometry () const
  • void setGeometry ( int x, int y, int w, int h )
  • void setGeometry ( const QRect & )

See also frameGeometry(), rect(), ...

When the \brief command is used to describe a class, the brief text should be a complete sentence and must start like this:

        The <classname> class is|provides|contains|specifies...

Warning: The brief statement is used as the first paragraph of the detailed description. Do not repeat the sentence.

        / *!
            \class PreviewWindow
            \brief The PreviewWindow class is a custom widget
                   displaying the names of its currently set
                   window flags in a read-only text editor.

            The PreviewWindow class inherits QWidget. The widget
            displays the names of its window flags set with the
            setWindowFlags() function. It is also provided with a
            QPushButton that closes the window.

            ...

            \sa QWidget
        * /

QDoc renders this as:

PreviewWindow Class Reference

The PreviewWindow class is a custom widget displaying the names of its currently set window flags in a read-only text editor. More...

Properties

  • 52 properties inherited from QWidget
  • 1 property inherited from QObject

Public Functions

  • 183 public functions inherited from QWidget
  • 28 public functions inherited from QObject

Public Slots

  • 17 public slots inherited from QWidget
  • 1 public slot inherited from QObject

Additional Inherited Members

  • 1 signal inherited from QWidget
  • 1 signal inherited from QObject
  • 4 static public members inherited from QWidget
  • 4 static public members inherited from QObject
  • 39 protected functions inherited from QWidget
  • 7 protected functions inherited from QObject

Detailed Description

The PreviewWindow class is a custom widget displaying the names of its currently set window flags in a read-only text editor.

The PreviewWindow class inherits QWidget. The widget displays the names of its window flags set with the setWindowFlags() function. It is also provided with a QPushButton that closes the window.

...

See also QWidget.


Member Function Documentation

PreviewWindow(QWidget *parent = 0)

Constructs a preview window widget with parent.

setWindowFlags(Qt::WindowFlags flags)

Sets the widgets flags using the QWidget::setWindowFlags() function.

Then runs through the available window flags, creating a text that contains the names of the flags that matches the flags parameter, displaying the text in the widgets text editor.

Using \brief in a \namespace:

        / *!
            \namespace Qt

            \brief The Qt namespace contains miscellaneous identifiers
            used throughout the Qt library.
        * /

Using \brief in a \headerfile:

        / *!
            \headerfile <QtGlobal>
            \title Global Qt Declarations

            \brief The <QtGlobal> header file provides basic
            declarations and is included by all other Qt headers.

            \sa <QtAlgorithms>
        * /

See also \property, \class, \namespace and \headerfile.

\legalese

The \legalese and \endlegalese commands delimit a licence agreement.

In the generated HTML, the delimited text is surrounded by a <div class="LegaleseLeft"> and </div> tags.

For example, here is a license agreement enclosed in \legalese and \endlegalese:

 / *!
   \legalese
       Copyright 1996 Daniel Dardailler.

       Permission to use, copy, modify, distribute, and sell this
       software for any purpose is hereby granted without fee,
       provided that the above copyright notice appear in all
       copies and that both that copyright notice and this
       permission notice appear in supporting documentation, and
       that the name of Daniel Dardailler not be used in
       advertising or publicity pertaining to distribution of the
       software without specific, written prior permission. Daniel
       Dardailler makes no representations about the suitability of
       this software for any purpose. It is provided "as is"
       without express or implied warranty.

   Modifications Copyright 1999 Matt Koss, under the same
       license as above.
       \endlegalese
     * /

It will appear in the generated HTML as:

  <div class="LegaleseLeft">
    <p>Copyright 1996 Daniel Dardailler.</p>
        <p>Permission to use, copy, modify, distribute, and sell
        this software for any purpose is hereby granted without fee,
        provided that the above copyright notice appear in all
        copies and that both that copyright notice and this
        permission notice appear in supporting documentation, and
        that the name of Daniel Dardailler not be used in
        advertising or publicity pertaining to distribution of the
        software without specific, written prior permission. Daniel
        Dardailler makes no representations about the suitability of
        this software for any purpose. It is provided "as is"
        without express or implied warranty.</p>

    <p>Modifications Copyright 1999 Matt Koss, under the same
        license as above.</p>
  </div>

If the \endlegalese command is omitted, QDoc will process the \legalese command but considers the rest of the documentation page as the license agreement.

Ideally, the license text is located with the licensed code.

Elsewhere, the documentation identified as \legalese command can be accumulated using \generatelist with legalese-command as the argument. This is useful for generating an overview of the license agreements associated with the source code.

\warning

The \warning command prepends "Warning:" to the command's argument, in bold font.

        / *!
            Qt::HANDLE is a platform-specific handle type
            for system objects. This is  equivalent to
            \c{void *} on Windows and Mac OS X, and to
            \c{unsigned long} on X11.

            \warning Using this type is not portable.
        * /

QDoc renders this as:

Qt::HANDLE is a platform-specific handle type for system objects. This is equivalent to void * on Windows and Mac OS X, and to unsigned long on X11.

Warning: Using this type is not portable.

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