CMake Policies for QML
Qt Qml provides several CMake policies to control backward compatibility and behavior of QML-related CMake commands.
Available Policies
- QTP0001 - Controls QML module versioning behavior
- QTP0004 - Controls QML module output directory structure
- QTP0005 - Controls QML type registration behavior
Setting Policies
Use qt_policy() or cmake_policy() to set these policies in your CMakeLists.txt:
qt_policy(SET QTP0001 NEW)See also CMake Integration for QML and qt_add_qml_module.
© 2026 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.