qt_qml_import_path

指定搜索 QML 导入的目录列表。

此属性在 Qt 6.0 中引入。

注意: 此属性为技术预览版,在未来版本中可能会更改。

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

另请参阅 qt_android_generate_deployment_settings()

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