En esta página

Políticas de CMake para QML

Qt QML proporciona varias políticas CMake para controlar la compatibilidad con versiones anteriores y el comportamiento de los comandos CMake relacionados con QML.

Políticas disponibles

  • QTP0001 - Controla el comportamiento del versionado de módulos QML
  • QTP0004 - Controla la estructura del directorio de salida del módulo QML
  • QTP0005 - Controla el comportamiento del registro de tipos QML

Definición de políticas

Utilice qt_policy() o cmake_policy() para establecer estas políticas en su CMakeLists.txt:

qt_policy(SET QTP0001 NEW)

Véase también Integración de CMake para QML y 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.