supplier QML Value Type

Enthält Daten über den Anbieter eines Ortes, das Image eines Ortes, eine Bewertung oder einen Leitartikel. Mehr...

Import Statement: import QtLocation 6.8
Since: QtLocation 5.5

Detaillierte Beschreibung

Jede Instanz stellt eine Reihe von Daten über einen Anbieter dar, die den Namen, die URL und das Symbol des Anbieters enthalten können. Der Anbieter ist normalerweise ein Unternehmen oder eine Organisation.

Hinweis: Die Places API unterstützt Anbieter nur als 'retrieve-only'-Objekte. Die Übermittlung von Anbietern an einen Provider ist kein unterstützter Anwendungsfall.

Beispiel

Das folgende Beispiel zeigt, wie man einen Anbieter in QML erstellt und anzeigt:

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.

© 2025 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.