Politiche CMake per QML
Qt Qml fornisce diverse politiche CMake per controllare la retrocompatibilità e il comportamento dei comandi CMake relativi a QML.
Politiche disponibili
- QTP0001 - Controlla il comportamento della gestione delle versioni dei moduli QML
- QTP0004 - Controlla la struttura della directory di output dei moduli QML
- QTP0005 - Controlla il comportamento della registrazione dei tipi QML
Impostazione delle politiche
Utilizzare qt_policy() o cmake_policy() per impostare queste politiche nel file CMakeLists.txt:
qt_policy(SET QTP0001 NEW)Vedere anche Integrazione CMake per QML e 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.