Special ContentThe document contents commands identify parts of the documentation, i.e. parts with a special rendering, conceptual meaning or function. \abstractThe \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. \quotationThe \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:
But you can redefine the <blockquote> tag in your style.css file. \footnoteThe \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. \tableofcontentsThe \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. \briefThe \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:
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:
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. \legaleseThe \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. \warningThe \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:
|