C++ Documentation Style: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Cleanup)
 
(52 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Writing Guidelines]]
{{LangSwitch}}
{{LangSwitch}}
__TOC__
__TOC__
This page is part of the [[Qt Writing Guidelines]].
This page is part of the [[Qt Writing Guidelines]].


Though there are exceptions, these guidelines should be followed. Keeping that in mind, at least '''be consistent within the page'''. Meaning, the class member documentation should have the same style.
Qt uses QDoc to generate the documentation for Qt C++ documentation.


To generate the documentation, QDoc goes through the source code and generates documentation for C++ types such as classes. QDoc then associates member functions, properties, and other types to the appropriate class.
To get started, familiarize yourself with how QDoc works and the basics of setting up a QDoc project.


Note that the documentation must be in the implementation files such as ''.cpp'' files.
* [https://doc.qt.io/qt-6/qdoc-index.html QDoc Manual]
** [https://doc.qt.io/qt-6/21-0-qdoc-configuration.html The QDoc Configuration File]
** [https://doc.qt.io/qt-6/13-qdoc-commands-topics.html Topic Commands]
** [https://doc.qt.io/qt-6/14-qdoc-commands-contextcommands.html Context Commands]
** [https://doc.qt.io/qt-6/03-qdoc-commands-markup.html Markup Commands]
** [https://doc.qt.io/qt-6/qdoc-macros.html Macros]
The general guideline is: '''''Make your documentation set consistent with the rest of Qt.'''''  
 
Follow existing C++ documentation and make sure the documentation fits into the current structure.


== Class Documentation ==
== Class Documentation ==


Class documentation is generated using the [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html#class-command ] command and the name of the class as the first argument.
Class documentation is generated using the [https://doc.qt.io/qt-6/13-qdoc-commands-topics.html#class \class] command and the name of the class as the first argument.
 
For Qt, '''''we document the C++ classes in the implementation file, .cpp'''''.
 
The example below generates the QCache class documentation:


<code>
<code>
Line 23: Line 37:




QCachelt;Key, Tgt; defines a cache that stores objects of type T
QCache<Key, T> defines a cache that stores objects of type T
  associated with keys of type Key. For example, here's the
  associated with keys of type Key. For example, here's the
  definition of a cache that stores objects of type Employee
  definition of a cache that stores objects of type Employee
Line 40: Line 54:
</code>
</code>


[http://doc-snapshot.qt.io/qt5-stable/qdoc/14-qdoc-commands-contextcommands.html Context commands] add information about the class, such as its module or
[https://doc.qt.io/qt-6/14-qdoc-commands-contextcommands.html Context commands] add information about the class, such as its module or
which version the class was added.
which version the class was added.


Some required context commands are:
Some '''''mandatory''''' '''context commands''' are:


''' [http://doc-snapshot.qt.io/qt5-stable/qdoc/11-qdoc-commands-specialcontent.html#brief-command ] - the class' brief description. '''mandatory'''
* [https://doc.qt.io/qt-6/11-qdoc-commands-specialcontent.html#brief \brief] - the class' brief description. See section below on the Brief.
* [http://doc-snapshot.qt.io/qt5-stable/qdoc/16-qdoc-commands-status.html#since-command ] - the version to which the class was added . '''mandatory''' (see '''Note''' section about backdating APIs)
* [https://doc.qt.io/qt-6/16-qdoc-commands-status.html#since \since] - the version when class was added
* [http://doc-snapshot.qt.io/qt5-stable/qdoc/19-qdoc-commands-grouping.html#inmodule-command ] - associates a class to a Qt module. '''mandatory'''
* [https://doc.qt.io/qt-6/19-qdoc-commands-grouping.html#inmodule \inmodule] - associates a class to a Qt module.
* [http://doc-snapshot.qt.io/qt5-stable/qdoc/16-qdoc-commands-status.html#internal-command ] - marks the class as internal. Internal classes do not appear in the public API documentation.
Other important context commands:
* [https://doc.qt.io/qt-6/16-qdoc-commands-status.html#internal \internal] - marks the class as internal. Internal classes including their member functions do not appear in the public API documentation.


'''Note:''' It was decided that we will not backdate APIs, so only add the with the version number of an upcoming release. See https://codereview.qt.io/#change,43797
Note''':''' It was decided that '''''we will not backdate APIs''''', so only add the with the version number of an upcoming release. See https://codereview.qt-project.org/c/qt/qtbase/+/43797


=== The Brief and Detailed Description ===
== The Brief and Detailed Description ==
The '''brief description''' is marked with the [https://doc-snapshots.qt.io/qt6-dev/11-qdoc-commands-specialcontent.html#brief-command \brief] command and it is for summarizing the purpose or functionality of the class. QDoc adds the brief descriptions to the annotated lists and tables listing the C++ classes.  Ensure that the brief fits into a QDoc generated table such as as the [https://doc.qt.io/qt-6/qtnetwork-module.html Qt Network C++ Classes] page.


The '''brief description''' is marked with the [http://doc-snapshot.qt.io/qt5-stable/qdoc/11-qdoc-commands-specialcontent.html#brief-command ] command and it is for summarizing the purpose or functionality of the class. QDoc adds the brief descriptions to the annotated lists and tables listing the C++ classes. It is a good practice to begin a brief description with a verb.
'''''Note: QDoc requires a brief description and generates a warning if the brief is empty.'''''


In general, the brief statements
* '''''The <C++ class> class provides...'''''
* '''''The <C++ class> class is the base class of...'''''
* '''''The <C++ class> class manipulates...'''''
...or use other verbs that describe the class in general.
Things to note:
* QDoc requires a brief description and generates a warning if the brief is empty.
* '''''Terminate the brief description with a period''''' and complete the sentence.
* The brief statement structure differs for C++ APIs, QML APIs, overviews, and examples.
The '''Detailed Description''' section starts after the brief description. It provides more information about the class. The detailed description may contain images, snippet code, or links to other relevant documents. There must be an empty line which separates the brief and detailed description.
The '''Detailed Description''' section starts after the brief description. It provides more information about the class. The detailed description may contain images, snippet code, or links to other relevant documents. There must be an empty line which separates the brief and detailed description.


== Member Functions ==
== Member Functions ==


Typically, function documentation immediately precedes the implementation of the function in the ''.cpp file''. For function documentation that is not immediately above the implementation, the [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html#fn-command ] is needed.
Typically, member function documentation is above its implementation in a ''.cpp file'' and QDoc can associate the function with the documentation. If the function documentation is elsewhere, the [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html#fn-command \fn] command is needed. QDoc then generates a list of member functions in the class documentation.


<code>
The function documentation starts with a verb, indicating the operation the function performs. This also applies to constructors and destructors.
/*!
QString &QString::remove(int position, int n)


Removes n characters from the string, starting at the given position index, and returns a reference to the string.
Some common verbs for function documentation:
 
If the specified position index is within the string, but position + n is beyond the end of the string, the string is
truncated at the specified position.


qstring/main.cpp 37
* '''''Constructs…'''''- for constructors


insert(), replace()
* '''''Destroys…''''' - for destructors
*/
* '''''Returns…''''' - for accessor functions
</code>


The function documentation starts with a verb, indicating the operation the function performs. This also applies to constructors and destructors.
'''''Member function documentation must include:'''''


Some common verbs for function documentation:
* [https://doc.qt.io/qt-6/04-qdoc-commands-textmarkup.html#a-parameter-marker \a] - the parameters and parameter types
''' "Constructs…" - for constructors
* "Destroys…" - for destructors
* "Returns…" - for accessor functions


The function documentation must document:
* [https://doc.qt.io/qt-6/04-qdoc-commands-textmarkup.html#c-code-font \c] - the return type in marked up text
* the return type
* [https://doc.qt.io/qt-6/16-qdoc-commands-status.html#since \since] - the version when the function added
* the parameters
* Preconditions, behaviors, and consequences from using the member function
* the actions of the functions


The [http://doc-snapshot.qt.io/qt5-stable/qdoc/04-qdoc-commands-textmarkup.html#a-command ] command marks the parameter in the documentation.
For example, the code below generates the [https://doc.qt.io/qt-6/qbasictimer.html#isActive QBasicTimer::isActive()] documentation.
The return type documentation should link to the type documentation or be marked with the [http://doc-snapshot.qt.io/qt5-stable/qdoc/04-qdoc-commands-textmarkup.html#c-command ] command in the case of boolean values.


<code>
<code>
/*!
/*!
Returns rue if a QScroller object was already created for target; alse otherwise.
    \fn bool QBasicTimer::isActive() const


scroller()
    Returns \c true if the timer is running and has not been stopped; otherwise
    returns \c false.
 
    \sa start(), stop()
*/
*/
</code>
</code>


== Properties ==
== Properties ==
The property documentation resides immediately above the read function's implementation. The [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html topic-commands] for properties is [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html#property-command ].
The [https://doc.qt.io/qt-6/13-qdoc-commands-topics.html#property \property] command is for documenting properties. If the documentation is above the implementation, then QDoc can connect the documentation with the property. QDoc then generates a listing of properties in the class documentation.
 
Property documentation usually start with these expressions:
* '''''This property holds…'''''
 
* '''''This property describes…'''''
* '''''This property represents…'''''
* '''''Returns \c true when… and also when…''''' - for properties that are read
* '''''Sets the…''''' - for properties that configure a type
 
'''''Property documentation must include:'''''
* [https://doc.qt.io/qt-6/04-qdoc-commands-textmarkup.html#c-code-font \c] command to mark property values such as accepted, minimum or maximum ranges, and default values
* [https://doc-snapshots.qt.io/qt6-dev/11-qdoc-commands-specialcontent.html#brief-command \brief] command which QDoc uses as the brief description
* [https://doc.qt.io/qt-6/16-qdoc-commands-status.html#since \since] - the version when the property was added.
The example below generates documentation for the [https://doc.qt.io/qt-6/qlabel.html#wordWrap-prop QLabel::wordWrap] property.


<code>
<code>
/*!
/*!
QVariantAnimation::duration
    \property QLabel::wordWrap
the duration of the animation
    \brief the label's word-wrapping policy


This property describes the duration in milliseconds of the
    If this property is \c true then label text is wrapped where
animation. The default duration is 250 milliseconds.
    necessary at word-breaks; otherwise it is not wrapped at all.


QAbstractAnimation::duration()
    By default, word wrap is disabled.
 
    \sa text
*/
*/
void QLabel::setWordWrap(bool on)
</code>
</code>


Property documentation usually starts with "This property…", but these are alternate expressions:
QDoc generates sections and text based on the [https://doc.qt.io/qt-6/properties.html Q_PROPERTY()] macro and the corresponding accessors and signals.
''' "This property holds…"
== Signals, notifiers, and slots ==
* "This property describes…"
 
* "This property represents…"
Signal, slot, and notifier documentation is also documented with the [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html#fn-command \fn] command. Therefore, the documentation for signals, slots, and notifiers is similar to member functions. QDoc then generates a listing of signals, slots, and notifiers in the class documentation.
* "Returns rue when… and alse when…" - for properties that are read.
* "Sets the…" - for properties that configure a type.


Property documentation must include:
* description and behavior of the property
* accepted values for the property
* the default value of the property
Similar to functions, the default type may be linked or marked with the '''' command.


An example of a value range style is:
The code below generates signal documentation for [https://doc.qt.io/qt-6/qwidget.html#windowTitleChanged QWidget::windowTitleChanged]().
<code>The values range from .0 (no blur) to maximumRadius (maximum blur). By default, the property is set to .0 (no blur).<code>


== Signals, Notifiers, and Slots ==
<code>
/*!
    \fn void QWidget::windowTitleChanged(const QString &title)


The [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html topic command] for signals, notifiers, and slots
    This signal is emitted when the window's title has changed, with the
is [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html#fn-command ]. Signal documentation state when they are triggered or emitted.
    new \a title as an argument.


    \since 5.2
*/
void QWidget::setWindowTitle(const QString &title)
</code>
</code>
/*!
QAbstractTransition::triggered()


This signal is emitted when the transition has been triggered (after
'''Documentation must include:'''
onTransition() has been called).
* [https://doc.qt.io/qt-6/04-qdoc-commands-textmarkup.html#a-parameter-marker \a] - the parameters and parameter types
*/
 
<code>
* [https://doc.qt.io/qt-6/04-qdoc-commands-textmarkup.html#c-code-font \c] - the return type in marked up text
* [https://doc.qt.io/qt-6/16-qdoc-commands-status.html#since \since] - the version when the function added
* Preconditions, behaviors, and consequences
 
Here are common sentence structures for '''signals''':
* '''''This signal is triggered when…'''''
 
* '''''Triggered when…'''''
* '''''Emitted when…'''''


Signal documentation typically begin with "This signal is triggered when…". Here are alternate styles:
For '''slots or notifiers''', document the condition when they are executed or triggered by a signal.
''' "This signal is triggered when…"
* '''''Executed when…'''''
* "Triggered when…"
* '''''This slot is executed when…'''''
* "Emitted when…"


For slots or notifiers, the condition when they are executed or triggered by a signal should be documented.
For properties that have overloaded signals, QDoc groups the overloaded notifiers together. To refer to a specific version of a notifier or signal, refer to the property and mention that there are different versions of the notifier.
* "Executed when…"
* "This slot is executed when…"


For properties that have overloaded signals, QDoc groups the overloaded notifiers together. To refer to a specifc version of a notifier or signal, simply refer to the property and mention that there are different versions of the notifier.
For an example, see the generated documentation for [https://doc.qt.io/qt-6/qspinbox.html#value-prop QSpinBox::value] property which has a notifier and a signal.


</code>
<code>
/*!
/*!
  QSpinBox::value
  QSpinBox::value
Line 165: Line 204:
  signal which includes the spin box's prefix and suffix.
  signal which includes the spin box's prefix and suffix.
*/
*/
<code>
</code>
 
== Enums and other Types ==
For other types such as enums, namespaces, and macros, QDoc has a topic command for each. Familiarize yourself with the [https://doc.qt.io/qt-6/13-qdoc-commands-topics.html topic commands] page of the QDoc Manual.


== Enums, Namespaces, and other Types ==
For C++ enums, use the [https://doc.qt.io/qt-6/13-qdoc-commands-topics.html#enum \enum] command and:
Enums, namespaces, and macros have a [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html topic-command] for their documentation:
''' [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html#enum-command ]
* [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html#typedef-command ]
* [http://doc-snapshot.qt.io/qt5-stable/qdoc/13-qdoc-commands-topics.html#macro-command ]


The language style for these types mention that they are an enum or a macro and
* [https://doc.qt.io/qt-6/10-qdoc-commands-tablesandlists.html#value \value] for each enum value
continues with the type description.
* [https://doc.qt.io/qt-6/10-qdoc-commands-tablesandlists.html#omitvalue \omitvalue] values not intended to be visible. Otherwise, QDoc will emit a warning for undocumented values
* [https://doc.qt.io/qt-6/16-qdoc-commands-status.html#since \since] - the version when the enum was added.


For enumerations, the [http://doc-snapshot.qt.io/qt5-stable/qdoc/10-qdoc-commands-tablesandlists.html#value-command ] command is used to list the values. QDoc creates a table containing the enum values.


</code>
QDoc will then generate a table with the values. The code below generates the documentation for [https://doc.qt.io/qt-6/qboxlayout.html#Direction-enum QBoxLayout::Direction].<code>
/*!
/*!
QSql::TableType
    \enum QBoxLayout::Direction


This enum type describes types of SQL tables.
    This type is used to determine the direction of a box layout.


Tables All the tables visible to the user.
    \value LeftToRight  Horizontal from left to right.
  SystemTables Internal tables used by the database.
    \value RightToLeft Horizontal from right to left.
  Views All the views visible to the user.
    \value TopToBottom Vertical from top to bottom.
  AllTables All of the above.
    \value BottomToTop Vertical from bottom to top.
 
    \omitvalue Down
    \omitvalue Up
*/
*/
</code>
== Relating and giving context ==
QDoc creates an internal structure of the implementation and can generate documentation from this structure. API developers can fine tune QDoc's output by relating the implementations and by giving context to the APIs. For Qt documentation, there are certain things that Qt developers deem as internal or in order to present a cleaner API, abstract implementation details.
For C++ API, in many cases, QDoc can assume much of the API structure such as C++ inheritance, but it needs help to abstract and properly connect APIs.
To fine tune relationships and give context to QDoc, here are some common commands:
*[https://doc.qt.io/qt-6/16-qdoc-commands-status.html#internal \internal]
* [https://doc.qt.io/qt-6/18-qdoc-commands-relating.html#overload \overload]
* [https://doc.qt.io/qt-6/18-qdoc-commands-relating.html#reimp \reimp]
* [https://doc.qt.io/qt-6/18-qdoc-commands-relating.html#relates \relates]
Read the QDoc Manual's [https://doc.qt.io/qt-6/18-qdoc-commands-relating.html Relating Things] page for command usage.

Latest revision as of 16:07, 16 December 2024

En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh

This page is part of the Qt Writing Guidelines.

Qt uses QDoc to generate the documentation for Qt C++ documentation.

To get started, familiarize yourself with how QDoc works and the basics of setting up a QDoc project.

The general guideline is: Make your documentation set consistent with the rest of Qt.

Follow existing C++ documentation and make sure the documentation fits into the current structure.

Class Documentation

Class documentation is generated using the \class command and the name of the class as the first argument.

For Qt, we document the C++ classes in the implementation file, .cpp.

The example below generates the QCache class documentation:

/*!
 QCache
 A template class that provides a cache.
 QtCore
 tools
 shared



QCache<Key, T> defines a cache that stores objects of type T
 associated with keys of type Key. For example, here's the
 definition of a cache that stores objects of type Employee
 associated with an integer key:

code/doc_src_qcache.cpp 0

Here's how to insert an object in the cache:

code/doc_src_qcache.cpp 1

… detailed description omitted

QPixmapCache, QHash, QMap
*/

Context commands add information about the class, such as its module or which version the class was added.

Some mandatory context commands are:

  • \brief - the class' brief description. See section below on the Brief.
  • \since - the version when class was added
  • \inmodule - associates a class to a Qt module.

Other important context commands:

  • \internal - marks the class as internal. Internal classes including their member functions do not appear in the public API documentation.

Note: It was decided that we will not backdate APIs, so only add the with the version number of an upcoming release. See https://codereview.qt-project.org/c/qt/qtbase/+/43797

The Brief and Detailed Description

The brief description is marked with the \brief command and it is for summarizing the purpose or functionality of the class. QDoc adds the brief descriptions to the annotated lists and tables listing the C++ classes. Ensure that the brief fits into a QDoc generated table such as as the Qt Network C++ Classes page.

Note: QDoc requires a brief description and generates a warning if the brief is empty.

In general, the brief statements

  • The <C++ class> class provides...
  • The <C++ class> class is the base class of...
  • The <C++ class> class manipulates...

...or use other verbs that describe the class in general.

Things to note:

  • QDoc requires a brief description and generates a warning if the brief is empty.
  • Terminate the brief description with a period and complete the sentence.
  • The brief statement structure differs for C++ APIs, QML APIs, overviews, and examples.

The Detailed Description section starts after the brief description. It provides more information about the class. The detailed description may contain images, snippet code, or links to other relevant documents. There must be an empty line which separates the brief and detailed description.

Member Functions

Typically, member function documentation is above its implementation in a .cpp file and QDoc can associate the function with the documentation. If the function documentation is elsewhere, the \fn command is needed. QDoc then generates a list of member functions in the class documentation.

The function documentation starts with a verb, indicating the operation the function performs. This also applies to constructors and destructors.

Some common verbs for function documentation:

  • Constructs…- for constructors
  • Destroys… - for destructors
  • Returns… - for accessor functions

Member function documentation must include:

  • \a - the parameters and parameter types
  • \c - the return type in marked up text
  • \since - the version when the function added
  • Preconditions, behaviors, and consequences from using the member function

For example, the code below generates the QBasicTimer::isActive() documentation.

/*!
    \fn bool QBasicTimer::isActive() const

    Returns \c true if the timer is running and has not been stopped; otherwise
    returns \c false.

    \sa start(), stop()
*/

Properties

The \property command is for documenting properties. If the documentation is above the implementation, then QDoc can connect the documentation with the property. QDoc then generates a listing of properties in the class documentation.

Property documentation usually start with these expressions:

  • This property holds…
  • This property describes…
  • This property represents…
  • Returns \c true when… and also when… - for properties that are read
  • Sets the… - for properties that configure a type

Property documentation must include:

  • \c command to mark property values such as accepted, minimum or maximum ranges, and default values
  • \brief command which QDoc uses as the brief description
  • \since - the version when the property was added.

The example below generates documentation for the QLabel::wordWrap property.

/*!
    \property QLabel::wordWrap
    \brief the label's word-wrapping policy

    If this property is \c true then label text is wrapped where
    necessary at word-breaks; otherwise it is not wrapped at all.

    By default, word wrap is disabled.

    \sa text
*/
void QLabel::setWordWrap(bool on)

QDoc generates sections and text based on the Q_PROPERTY() macro and the corresponding accessors and signals.

Signals, notifiers, and slots

Signal, slot, and notifier documentation is also documented with the \fn command. Therefore, the documentation for signals, slots, and notifiers is similar to member functions. QDoc then generates a listing of signals, slots, and notifiers in the class documentation.


The code below generates signal documentation for QWidget::windowTitleChanged().

/*!
    \fn void QWidget::windowTitleChanged(const QString &title)

    This signal is emitted when the window's title has changed, with the
    new \a title as an argument.

    \since 5.2
*/
void QWidget::setWindowTitle(const QString &title)

Documentation must include:

  • \a - the parameters and parameter types
  • \c - the return type in marked up text
  • \since - the version when the function added
  • Preconditions, behaviors, and consequences

Here are common sentence structures for signals:

  • This signal is triggered when…
  • Triggered when…
  • Emitted when…

For slots or notifiers, document the condition when they are executed or triggered by a signal.

  • Executed when…
  • This slot is executed when…

For properties that have overloaded signals, QDoc groups the overloaded notifiers together. To refer to a specific version of a notifier or signal, refer to the property and mention that there are different versions of the notifier.

For an example, see the generated documentation for QSpinBox::value property which has a notifier and a signal.

/*!
 QSpinBox::value
 the value of the spin box

setValue() will emit valueChanged() if the new value is different
 from the old one. The {QSpinBox::}{value} property has a second notifier
 signal which includes the spin box's prefix and suffix.
*/

Enums and other Types

For other types such as enums, namespaces, and macros, QDoc has a topic command for each. Familiarize yourself with the topic commands page of the QDoc Manual.

For C++ enums, use the \enum command and:

  • \value for each enum value
  • \omitvalue values not intended to be visible. Otherwise, QDoc will emit a warning for undocumented values
  • \since - the version when the enum was added.


QDoc will then generate a table with the values. The code below generates the documentation for QBoxLayout::Direction.

/*!
    \enum QBoxLayout::Direction

    This type is used to determine the direction of a box layout.

    \value LeftToRight  Horizontal from left to right.
    \value RightToLeft  Horizontal from right to left.
    \value TopToBottom  Vertical from top to bottom.
    \value BottomToTop  Vertical from bottom to top.

    \omitvalue Down
    \omitvalue Up
*/

Relating and giving context

QDoc creates an internal structure of the implementation and can generate documentation from this structure. API developers can fine tune QDoc's output by relating the implementations and by giving context to the APIs. For Qt documentation, there are certain things that Qt developers deem as internal or in order to present a cleaner API, abstract implementation details.

For C++ API, in many cases, QDoc can assume much of the API structure such as C++ inheritance, but it needs help to abstract and properly connect APIs.

To fine tune relationships and give context to QDoc, here are some common commands:

Read the QDoc Manual's Relating Things page for command usage.