本页内容

命名对象

通常,标题命令会将其后面的所有内容(直到第一个换行符)视为其参数。如果标题过长而必须分多行显示,则每行结尾(最后一行除外)应以反斜杠结束。

命令

\title

\title 命令用于设置文档页面的标题,或允许您覆盖该标题。

/*!
    \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.

    ...
*/

另请参阅 \subtitle。

\subtitle

\subtitle 命令用于为文档页面设置副标题。

/*!
    \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.
    ...
*/

另请参阅 \title。

© 2026 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.