supplier QML Value Type
Contient des informations concernant le fournisseur d'un lieu, l'image d'un lieu, un avis ou un article rédactionnel. En savoir plus...
| Import Statement: | import QtLocation 6.12 |
| Since: | QtLocation 5.5 |
Description détaillée
Chaque instance représente un ensemble de données concernant un fournisseur, pouvant inclure le nom, l'URL et l'icône de ce dernier. Le fournisseur est généralement une entreprise ou une organisation.
Remarque : l’API Places ne prend en charge les fournisseurs qu’en tant qu’objets « en lecture seule ». La soumission de fournisseurs à un prestataire n’est pas un cas d’utilisation pris en charge.
Exemple
L'exemple suivant montre comment créer et afficher un fournisseur en 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
}Voir également ImageModel, ReviewModel et 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.