/**************************************************************************** ** ** 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. For applications, the default value is \c{.qmltypes}, where \c{} is the product's \l{Product::targetName}{target name}. Otherwise, the default value is "plugins.qmltypes". \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 */