If the project includes "Controls" or "ControlsTemplates" as described in ModuleFiles.MCU.qulModules , it becomes possible to change the style of the controls. The project has to implement the new style as a separate module and include that module in a ModuleFiles node. You can specify the new style from the following options:

  • MCU.Config node, using the controlsStyle property.
  • qmlprojectexporter --controls-style command-line option, which will override the controlsStyle property if you are using both of them.

One use case of the command-line parameter as opposed to the node property, is when you implement several styles for different target platforms. In that case, it is the build system that contains the logic to choose the style for each platform.


// MyControls is a module
qmlprojectexporter --controls-style MyModule --outdir output-dir my_project.qmlproject


This option was introduced in QmlProject API 1.3 .

See also qmlprojectexporter, MCU.Config.controlsStyle, MCU.Module, and ModuleFiles.MCU.qulModules.

Available under certain Qt licenses.
Find out more.