本页内容

supplier QML Value Type

存储有关某场所的供应商、该场所的图片、评论或编辑内容的数据。更多...

Import Statement: import QtLocation 6.12
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 。

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