supplier QML Value Type
Enthält Daten zum Anbieter eines Ortes, zum Bild eines Ortes, zu einer Bewertung oder zu einem redaktionellen Beitrag. Mehr...
| Import Statement: | import QtLocation 6.12 |
| Since: | QtLocation 5.5 |
Ausführliche Beschreibung
Jede Instanz repräsentiert einen Datensatz über einen Anbieter, der den Namen, die URL und das Symbol des Anbieters enthalten kann. Bei dem Anbieter handelt es sich in der Regel um ein Unternehmen oder eine Organisation.
Hinweis: Die Places-API unterstützt Anbieter nur als Objekte, die ausschließlich zum Abrufen bestimmt sind. Das Übermitteln von Anbietern an einen Provider wird nicht unterstützt.
Beispiel
Das folgende Beispiel zeigt, wie ein Anbieter in QML erstellt und angezeigt wird:
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
}Siehe auch ImageModel, ReviewModel und 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.