C

--qml-mappings-dir

Specify the path to the directory containing files with mappings of custom QML modules to default modules.

Description

Use this option to choose a custom module instead of the default QML module, using the same import statement. You can define the mappings in a text file with entries formatted as "DefaultImport=CustomImport". For example, "QtQuick.Controls=./MyControls". qmlprojectexporter will store the mappings in the directory specified by --qml-mappings-dir.

See --controls-style and MCU.Config.controlsStyle on how to add a custom style for controls.

Note: If the --qml-mappings-dir option is not specified, qmlprojectexporter will not generate the mappings.

Note: For QtCreator to understand the mappings with its McuSupport plugin, the value should be {builddir}/qml_module_mappings

Short option: -d

Usage

qmlprojectexporter --qml-mappings-dir build/qml_module_mappings --contrls-styles CustomStyle --outdir output-dir my_project.qmlproject

Since

This option was introduced in QmlProject API 1.3 .

See also --controls-style, MCU.Config.controlsStyle, qmlprojectexporter, and --outdir.

Available under certain Qt licenses.
Find out more.