aboutsummaryrefslogtreecommitdiffstats
path: root/doc/reference/modules/qt-qml-module.qdoc
blob: 3d5758fc31a0b0a826869a52c4de545f3b375d1f (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qbs.
**
** $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 https://www.qt.io/terms-conditions. For further
** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
** $QT_END_LICENSE$
**
****************************************************************************/

/*!
    \contentspage index.html
    \qmltype Qt.qml
    \inqmlmodule QbsModules
    \brief Provides Qt QML support.

    The Qt.qml module provides support for the Qt QML module, which contains
    classes for QML and JavaScript languages.

    \note If the current value of \l{qbs::architecture}{qbs.architecture} is not
    supported by \c qmlcachegen, the QML cache file generator rule is disabled.

    \sa Qt.quick, Qt.declarative

    \section2 Relevant File Tags
    \target filetags-qml

    \table
    \header
        \li Tag
        \li Auto-tagged File Names
        \li Since
        \li Description
    \row
        \li \c{"qt.qml.js"}
        \li \c{*.js}
        \li 1.10
        \li QML companion JavaScript files. Source files with this tag serve as
            input for the QML cache file generator.
    \row
        \li \c{"qt.qml.qml"}
        \li \c{*.qml}
        \li 1.8
        \li Source files with this tag serve as inputs to the QML plugin
            scanner.
    \row
        \li \c{"qt.qml.types"}
        \li n/a
        \li 1.16
        \li This tag is attached to the files created by the \c qmltyperegistrar
            tool if the \l importName property is set.
    \endtable
*/

/*!
    \qmlproperty string Qt.qml::importName

    Setting this value triggers QML type registration via the \c qmltyperegistrar tool,
    which results in the creation of a file with the tag \c{"qt.qml.types"}.
    The given string is the name under which the registered types can be imported
    by QML code that wants to use them.

    \note This functionality is only available with Qt 5.15 or later.

    \since Qbs 1.16
    \nodefaultvalue
*/

/*!
    \qmlproperty string Qt.qml::importVersion

    Specifies the version of the types to be registered.
    Values consist of a major and an optional minor number, separated by dots.
    This property has no effect if \l importName is not set.

    \since Qbs 1.16
    \defaultvalue \l {Product::version}{The product version}
*/

/*!
    \qmlproperty string Qt.qml::typesFileName

    Specifies the name of the file that declares the types registered for this product.
    Per default, it is called "app.qmltypes" for applications and "plugins.qmltypes"
    otherwise.
    \note The naming conventions are still in flux.
          When in doubt, consult the Qt documentation.

    This property has no effect if \l importName is not set.

    \since Qbs 1.16
*/

/*!
    \qmlproperty string Qt.qml::typesInstallDir

    The directory to install the qmltypes file into. If this property is empty or undefined,
    the file will not be installed.
    This property has no effect if \l importName is not set.

    \since Qbs 1.16
    \nodefaultvalue
*/

/*!
    \qmlproperty stringList Qt.qml::extraMetaTypesFiles

    Specifies extra metatypes files to pass to the \c qmltyperegistrar tool
    via the \c{--foreign-types} option when registering QML types.
    \note This property is only needed for external libraries, not products or modules
          pulled via \c Depends items. In particular, you don't need to (and should not)
          use it to collect the metatypes files of Qt modules. These are found automatically.
    This property has no effect if \l importName is not set.

    \since Qbs 1.16
    \nodefaultvalue
*/

/*!
    \qmlproperty string Qt.qml::qmlImportScannerName

    The base name of the QML import scanner.

    Set this value if your system uses a name different from the default value.

    \defaultvalue \c{"qmlimportscanner"}
*/

/*!
    \qmlproperty string Qt.qml::qmlPath

    The absolute path to the directory where Qt's QML files are installed.

    \defaultvalue Determined by \l{setup-qt}.
*/

/*!
    \qmlproperty bool Qt.qml::generateCacheFiles

    Whether QML cache files are generated.

    \defaultvalue \c{false}
*/

/*!
    \qmlproperty bool Qt.qml::cachingEnabled
    \readonly

    This property is \c true if \l{Qt.qml::}{generateCacheFiles} is \c{true}
    and the platform supports QML cache generation.

    \defaultvalue \c{false}
*/

/*!
    \qmlproperty string Qt.qml::qmlCacheGenPath

    The absolute path to the \c qmlcachegen executable.

    \defaultvalue Determined by \l{setup-qt}.
*/

/*!
    \qmlproperty string Qt.qml::cacheFilesInstallDir

    The path to the directory where the cache files are installed.

    If this property is set, QML cache files are automatically installed.

    \nodefaultvalue
*/