IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

supplier QML Value Type

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

This type was introduced in QtLocation 5.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

supplier QML Value Type

  • Import Statement: import QtLocation 6.5

  • Since: QtLocation 5.5

  • Group: supplier is part of qml-QtLocation5-places, qml-QtLocation5-places-data

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:

 
Sélectionnez
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
}

See Also

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+