Nesta página

Políticas do CMake para QML

Qt Qml fornece várias políticas do CMake para controlar a compatibilidade com versões anteriores e o comportamento dos comandos do CMake relacionados ao QML.

Políticas disponíveis

  • QTP0001 — Controla o comportamento de controle de versão do módulo QML
  • QTP0004 - Controla a estrutura do diretório de saída do módulo QML
  • QTP0005 — Controla o comportamento do registro de tipos do QML

Definição de políticas

Use qt_policy() ou cmake_policy() para definir essas políticas no seu arquivo CMakeLists.txt:

qt_policy(SET QTP0001 NEW)

Veja também Integração do CMake com 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.