CMake-Richtlinien für QML
Qt Qml bietet mehrere CMake-Richtlinien, um die Abwärtskompatibilität und das Verhalten von QML-bezogenen CMake-Befehlen zu steuern.
Verfügbare Policies
- QTP0001 - Steuert das Versionsverhalten von QML-Modulen
- QTP0004 - Steuert die Struktur des QML-Modul-Ausgabeverzeichnisses
- QTP0005 - Steuert das Verhalten bei der QML-Typenregistrierung
Festlegen von Richtlinien
Verwenden Sie qt_policy() oder cmake_policy(), um diese Richtlinien in Ihrer CMakeLists.txt zu setzen:
qt_policy(SET QTP0001 NEW)
Siehe auch CMake Integration für QML und 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.