QT_QML_IMPORT_PATH

指定用于搜索 QML 导入文件的目录列表。

该属性自 Qt 6.0 起引入。

注意:此 属性处于技术预览阶段,未来版本中可能会发生变更。

该属性目前仅在为 Android 生成部署设置文件时使用。它通常仅包含 Qt 的qml 目录的路径,但也可以是一个列表,其中还包含其他需要搜索的位置。对于特定于应用程序的 QML 导入,请改用QT_QML_ROOT_PATH。

另请参阅 qt_android_generate_deployment_settings()。

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