supplier QML Value Type
Contiene dati relativi al fornitore di un luogo, all'immagine di un luogo, a una recensione o a un articolo redazionale. Altro...
| Import Statement: | import QtLocation 6.12 |
| Since: | QtLocation 5.5 |
Descrizione dettagliata
Ogni istanza rappresenta un insieme di dati relativi a un fornitore, che possono includere il nome, l'URL e l'icona del fornitore. Il fornitore è in genere un'azienda o un'organizzazione.
Nota: l’API Places supporta i fornitori solo come oggetti “di sola lettura”. L’invio di fornitori a un provider non è un caso d’uso supportato.
Esempio
L'esempio seguente mostra come creare e visualizzare un fornitore in 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
}Vedi anche ImageModel, ReviewModel e 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.