C

--generate-default-values

Generate a file containing global default values and optional board defaults

Description

In addition to normal QmlProject files that define project resources, qmlprojectexporter can also process a different type of QmlProject files holding only MCU.Config within a root Project node, the MCU.Config node holds default values for a specific board and the file extension should be .qmlprojectconfig. You can include this config file in a project using the --boarddefaults option, which needs the path to a .qmlprojectconfig file.

If you use this option to specify the path to BoardDefaults.qmlprojectconfig, qmlprojectexporter will generate a default_values file in the output directory, containing the resolved default values for a specific board.

Usage

qmlprojectexporter --boarddefaults defaults.qmlprojectconfig --generate-default-values --outdir output-dir my_project.qmlproject

Since

This option was introduced in QmlProject API 1.3 .

See also --outdir and Defining default variables for the platform.

Available under certain Qt licenses.
Find out more.