CMake-Richtlinien für QML
Qt Qml bietet mehrere CMake-Richtlinien zur Steuerung der Abwärtskompatibilität und des Verhaltens von QML-bezogenen CMake-Befehlen.
Verfügbare Richtlinien
- QTP0001 – Steuert das Versionsverwaltungsverhalten von QML-Modulen
- QTP0004 – Steuert die Struktur des Ausgabeverzeichnisses von QML-Modulen
- QTP0005 – Steuert das Verhalten bei der Registrierung von QML-Typen
Richtlinien festlegen
Verwenden Sie „ qt_policy() “ oder „ cmake_policy() “, um diese Richtlinien in Ihrer `CMakeLists.txt` festzulegen:
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.