The main mode of operation of qmlprojectexporter is to export the Qml sources and assets of a project to C++ code that can be compiled with an external build system.

There can be use cases where the user might want to disable this behavior. For this purpose, they can set the --export-cpp flag to false. For example, in the context of the Qt for MCUs CMake environment, the qmlprojectexporter tool is run twice. First time during the configuration phase for generating the dependency trees, and the second time for generating the actual C++ code. In that first pass, the export-cpp flag is disabled.


This option was introduced in QmlProject API 1.3 .

Available under certain Qt licenses.
Find out more.