supplier QML Value Type

Holds data regarding the supplier of a place, a place's image, review, or editorial. 更多...

导入语句: import QtLocation 6.5
Since: QtLocation 5.5

详细描述

Each instance represents a set of data about a supplier, which can include supplier's name, url and icon. The supplier is typically a business or organization.

Note: The Places API only supports suppliers as 'retrieve-only' objects. Submitting suppliers to a provider is not a supported use case.

范例

The following example shows how to create and display a supplier in QML:

import QtQuick 2.0
import QtPositioning 5.5
import QtLocation 5.6
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 .