A project can include modules using the ModuleFiles node in the
qmlprojectexporter exports the modules found in the main project by default. You can use the
--no-export-modules command-line option to disable this behavior, so that the tool exports only the files related to the main project.
The Qt for MCUs CMake environment uses the same approach for exporting the main project and its modules separately, while resolving the dependency trees.
// This will only export the files required by the project qmlprojectexporter --no-export-modules --outdir output-dir my_project.qmlproject
This option was introduced in QmlProject API 1.3 .
See also --no-export-cpp, --no-export-configuration, and ModuleFiles.
Available under certain Qt licenses.
Find out more.