QT_HARMONYOS_模块描述
HarmonyOS 模块的描述。
该属性自 Qt 6.12 起引入。
注意:该 属性处于技术预览阶段,未来版本中可能会发生变化。
注意: 仅当目标平台为 HarmonyOS 时,才使用此 属性。
指定模块描述。它支持字面量字符串(该字符串将原样显示在清单中且不可本地化),或$string:<name> 资源引用(该引用将解析为应用程序资源文件中的本地化字符串)。在构建HAP包时,该值将写入entry/src/main/module.json5 文件。
如果未设置此属性,则保留包模板中定义的值。
set_target_properties(myapp PROPERTIES
QT_HARMONYOS_MODULE_DESCRIPTION "My Application 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.