Qt CMake 策略

Qt CMake 策略可在多个版本中保持向后兼容性。每一个新策略都会首先警告你某个功能或行为已被弃用,然后是一条简要描述该变更的警告信息。要禁用策略警告,请使用qt_policy()命令明确要求NEW 或策略的非向后兼容行为。

策略

QTP0001

Qt Qml 模块的默认资源前缀是':/qt/qml/'。

QTP0002

指定 Android 特定路径的目标属性可能包含生成器表达式

QTP0003

创建 Qt 库时考虑 BUILD_SHARED_LIBS 值

QTP0004

QML 模块中包含 QML 文件的额外目录需要额外的 qmldir 文件

QTP0005

Qt_add_qml_module 的 DEPENDENCIES 参数接受目标

© 2025 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.