summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/doc/examples/examples.qdoc
blob: 777c869c657d6b69509ec77be7c8d4dc725350c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:FDL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see http://www.qt.io/terms-conditions. For further
** information use the contact form at http://www.qt.io/contact-us.
**
** GNU Free Documentation License Usage
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of
** this file. Please review the following information to ensure
** the GNU Free Documentation License version 1.3 requirements
** will be met: http://www.gnu.org/copyleft/fdl.html.
** $QT_END_LICENSE$
**
****************************************************************************/

/*!
    \example componentset
    \title QML Documentation Example

    This example demonstrates one of the ways to document QML types.

    In particular, there are sample types that are documented with QDoc
    commands comments. There are documentation comments for the QML types
    and their public interfaces. The types are grouped into a module, the
    \l{UI Components} module.

    The \l{componentset/uicomponents.qdoc.sample}{uicomponents.qdoc} file generates
    the overview page for the \l{UI Components} module page.

    The generated documentation is available in the \l{UI Components} module.

    \section1 QML Class

    The QML types use the \l{qmltype-command}{\\qmltype} to document the
    type. In addition, they have the \l{inmodule-command}{\\inmodule}
    command in order for QDoc to associate them to the \c UIComponents module.

    QDoc uses the \l{brief-command}{\\brief} command to place a basic
    description when listing the types.

    \section1 Properties, Signals, Handlers, and Methods

    The types have their properties, signals, handlers, and methods
    defined in their respective QML files. QDoc associates the properties and
    methods to the types, therefore, you only need to place the
    documentation above the property, method, or signal.

    To document the type of a \e {property alias}, you must use the
    \l{qmlproperty-command}{\\qmlproperty} command to specify the data type.

    \code
        \qmlproperty int anAliasedProperty
        An aliased property of type int.
    \endcode

    \section2 Internal Documentation

    You may declare that a documentation is for internal use by placing the
    \l{internal-command}{\\internal} command after the beginning QDoc comment
    \begincomment. QDoc will prevent the internal documentation from appearing
    in the public API.

    If you wish to omit certain parts of the documentation, you may use the
    \l{omit-command}{\\omit} and \l{omit-command}{\\endomit} command.

    \section1 QML Types with C++ Implementation

    This example only demonstrates the documentation for types in QML
    files, but the regular \l{qml-documentation}{QML commands} may be placed
    inside C++ classes to define the public API of the QML type.

*/


/*!
    \qmlmodule UIComponents 1.0
    \title UI Components
    \brief Basic set of UI components

    This is a listing of a list of UI components implemented by QML types. These

    files are available for general import and they are based off the \l{Qt
    Quick Code Samples}.

    This module is part of the \l{componentset}{UIComponents} example.
*/