IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Naming Things

QDoc Manual.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Naming Things

In general, a title command considers everything that follows it until the first line break as its argument. If the title is so long it must span multiple lines, end each line (except the last one) with a backslash.

Commands

   

\title

The \title command sets the title for a documentation page, or allows you to override it.

 
Sélectionnez
/ *!
    \page signalandslots.html

    \title Signals & Slots

    Signals and slots are used for communication between
    objects. The signals and slots mechanism is a central
    feature of Qt, and probably the part that differs most
    from the features provided by other frameworks.

    ...
* /

QDoc renders this as:

<center>Signal and Slots</center>

Signals and slots are used for communication between objects. The signals and slots mechanism is a central feature of Qt and probably the part that differs most from the features provided by other frameworks. ...

See also \subtitle.

 

\subtitle

The \subtitle command sets a subtitle for a documentation page.

 
Sélectionnez
\beginqdoc
    \page qtopiacore-overview.html

    \title Qtopia Core
    \subtitle Qt for Embedded Linux

    Qt/Embedded, the embedded Linux port of Qt, is a
    complete and self-contained C++ GUI and platform
    development tool for Linux-based embedded development.
    ...
\endqdoc

QDoc renders this as:

Qtopia Core

Qt for Embedded Linux

Qt/Embedded, the embedded Linux port of Qt, is a complete and self-contained C++ GUI and platform development tool for Linux-based embedded development. ...

See also \title.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+