Supplier QML Type | Qt Location 5.5

- Qt 5.5
- Qt Location
- QML Types
- Supplier QML Type
- Qt 5.5.1 Reference Documentation

# Supplier QML Type

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

Import Statement: | import QtLocation 5.3
Since: | Qt Location 5.5

- List of all members, including inherited members

## Properties

- icon : PlaceIcon
- name : string
- supplier : QPlaceSupplier
- supplierId : string
- url : url

## Detailed Description

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.

## Example

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

    import QtQuick 2.0
    import QtPositioning 5.5
    import QtLocation 5.5

    Supplier {
        id: placeSupplier
        name: "Example"
        url: "http://www.example.com/"
    }

    Text {
        text: "This place is was provided by " + placeSupplier.name + "\n" + placeSupplier.url
    }

See also ImageModel, ReviewModel, and EditorialModel.

## Property Documentation

icon : PlaceIcon

This property holds the icon of the supplier.

name : string

This property holds the name of the supplier which can be displayed to the user.

The name can potentially be localized. The language is dependent on the entity that sets it, typically this is the Plugin. The Plugin::locales property defines what language is used.

supplier : QPlaceSupplier

For details on how to use this property to interface between C++ and QML see "Interfaces between C++ and QML Code".

supplierId : string

This property holds the identifier of the supplier. The identifier is unique to the Plugin backend which provided the supplier and is generally not suitable for displaying to the user.

url : url

This property holds the URL of the supplier's website.