Specify the path where the mapping of custom qml modules and default modules are listed


To use a custom module instead of a qml module provided by default while using the same import statement, the mappings are defined in a text file with entries formatted as "DefaultImport=CustomImport" or for example "QtQuick.Controls=./MyControls" the mappings will be stored in the directory specified by --qml-mappings-dir

Note: If the --qml-mappings-dir option is not specified the mappings will not be generated.

Note: In order for the mappings to be picked by QtCreator MCU plugin the value should be {builddir}/qml_module_mappings

Short option: -d


This option was introduced in QmlProject API 1.3 .

See also qmlprojectexporter and --outdir.

Available under certain Qt licenses.
Find out more.