supplier QML Value Type
保存有关地点供应商、地点形象、评论或社论的数据。更多
Import Statement: | import QtLocation 6.9 |
Since: | QtLocation 5.5 |
详细说明
每个实例代表一组有关供应商的数据,其中包括供应商的名称、网址和图标。供应商通常是企业或组织。
注意:Places API 仅支持将供应商作为 "仅检索 "对象。不支持将供应商提交给提供商的用例。
示例
下面的示例展示了如何在 QML 中创建和显示供应商:
import QtQuick import QtPositioning import QtLocation Supplier { id: placeSupplier name: "Example" url: "http://www.example.com/" } Text { text: "This place is was provided by " + placeSupplier.name + "\n" + placeSupplier.url }
另请参阅 ImageModel,ReviewModel, 和EditorialModel 。
© 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.