Nesta página

Conteúdo especial

Os comandos de conteúdo do documento identificam partes da documentação que possuem uma apresentação especial, um significado conceitual ou uma função específica.

\quotation

Os comandos \quotation e \endquotation delimitam uma citação longa.

O texto no bloco delimitado é envolvido por <blockquote> e </blockquote> na saída em HTML, por exemplo:

/*!
  Although 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
*/

O texto no \quotation bloco aparecerá no HTML gerado da seguinte forma:

<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>

A folha de estilo integrada à maioria dos navegadores exibirá o conteúdo da tag <blockquote> com recuos à esquerda e à direita. O exemplo acima seria exibido da seguinte forma:

À medida que nossas soluções foram sendo adotadas em novos ambientes, percebemos uma necessidade crescente de integração mais fácil com uma gama mais ampla de aplicativos corporativos.

Mas você pode redefinir a tag <blockquote> no seu arquivo style.css.

\note

O comando \note define um novo parágrafo precedido por “Nota:” em negrito. O comando recebe um parágrafo contínuo como argumento, terminando após o fim do parágrafo. O comando “note” destina-se apenas a declarações mais curtas e não a parágrafos mais longos com várias linhas.

Semelhante ao \warning , a nota destina-se a declarações curtas e importantes. Consulte as Diretrizes de Redação do Qt para obter informações sobre o uso.

\notranslate

O comando ` \notranslate ` indica que seu argumento não deve ser traduzido quando a saída gerada for enviada a um serviço de tradução.

Outros comandos (\c, \tt) têm o mesmo efeito, mas o comando ` \notranslate ` não aplica nenhum estilo ao seu argumento.

Este comando foi introduzido na versão 6.10 do QDoc.

\brief

O comando ` \brief ` insere uma descrição de uma frase para qualquer um dos comandos de tópico.

O texto breve é usado para introduzir a documentação do objeto associado e em listas geradas pelo \generatelist e o \annotatedlist .

O texto breve será exibido na documentação desse tópico específico.

Por exemplo, a propriedade booleana ` QWidget::isWindow `:

/*!
   \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 \c true
   for both the active window \e and the popup.

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

e a propriedade QWidget::geometry

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

Quando o comando ` \brief ` for usado para descrever uma classe, recomendamos utilizar uma frase completa como esta:

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

Atenção: Não repita sua descrição detalhada com a mesma frase, pois a descrição resumida será o primeiro parágrafo da descrição detalhada.

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

Usando “ \brief ” em um \namespace:

/*!
   \namespace Qt

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

Como usar o \brief em um \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>
*/

Veja também \property, \class, \namespace e \headerfile.

\legalese

Os comandos \legalese e \endlegalese delimitam um contrato de licença.

No HTML gerado, o texto delimitado é envolvido pelas tags <div class="LegaleseLeft"> e </div>.

Um exemplo de contrato de licença entre as tags \legalese e \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
*/

Ele aparecerá no HTML gerado da seguinte forma:

<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>

Se o comando \endlegalese for omitido, o QDoc processará o comando \legalese, mas considerará o restante da página de documentação como o contrato de licença.

Idealmente, o texto da licença deve estar localizado junto ao código licenciado.

Em outros locais, a documentação identificada como \legalese pode ser reunida usando \generatelistlegalese como argumento. Isso é útil para gerar uma visão geral dos contratos de licença associados ao código-fonte.

Observação: A saída do comando ` \generatelist legalese ` inclui os textos de licença ` \legalese ` apenas do projeto de documentação atual. Se o projeto de documentação atual depender de outros módulos, os textos de licença desses módulos não serão listados.

\warning

O comando \warning acrescenta “Aviso:” ao início do argumento do comando, em negrito.

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

   \warning Using this type is not portable.
*/

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