QTP0004
Extra directories with QML files in a QML module need extra qmldir files.
This policy was introduced in Qt 6.8. It causes the build system to generate an extra qmldir file for each additional directory that contains QML files in a QML module.
Enabling this policy ensures that the implicit import of each of the QML components in your module is the same as the module itself. This means that all the components can see each other without explicitly importing the module.
The OLD
behavior of this policy is that a qmldir file is only generated for the root directory of a module.
The NEW
behavior of this policy is that for each directory with QML files in a module a separate qmldir file is generated.
Qt 6.8 issues warnings if you do not explicitly set the policy.
Note: The OLD
behavior of a policy is deprecated, and may be removed in the future.
See also qt_policy, qt_standard_project_setup(), qt_cmake_policies, and qt_add_qml_module.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.