By use of the node ModuleFiles, a qmlproject-based project can include modules, which need to also be described in their own qmlproject files. The qmlprojectexporter tool, when running on the main project, will also export the modules. The --export-modules flag can be used to disable this behavior, so that the tool will export only the files related to the main project.

This is used by the Qt for MCUs CMake environment for exporting the main project and their modules separately, while resolving the dependency trees.


This option was introduced in QmlProject API 1.3 .

Available under certain Qt licenses.
Find out more.