En esta página

supplier QML Value Type

Contiene datos sobre el proveedor de un lugar, la imagen de un lugar, una reseña o un artículo editorial. Más...

Import Statement: import QtLocation 6.12
Since: QtLocation 5.5

Descripción detallada

Cada instancia representa un conjunto de datos sobre un proveedor, que puede incluir el nombre, la URL y el icono del proveedor. El proveedor suele ser una empresa u organización.

Nota: La API de lugares solo admite a los proveedores como objetos de «solo lectura». El envío de proveedores a un proveedor no es un caso de uso admitido.

Ejemplo

El siguiente ejemplo muestra cómo crear y mostrar un proveedor 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
}

Véase también ImageModel, ReviewModel y 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.