En esta página

user QML Value Type

El tipo de usuario identifica al usuario que ha aportado un elemento de contenido concreto de Place. Más información...

Import Statement: import QtLocation 6.12
Since: QtLocation 5.5

Propiedades

Descripción detallada

Cada elemento de contenido de tipo « Place » tiene asociado un usuario que ha aportado dicho contenido. Este tipo proporciona información sobre dicho usuario.

Ejemplo

El siguiente ejemplo muestra cómo mostrar información sobre el usuario que envió un artículo editorial:

import QtQuick
import QtPositioning
import QtLocation

EditorialModel {
    id: editorialModel
    batchSize: 3
    place: place
}

ListView {
    model: editorialModel
    delegate: Item {
        anchors.fill: parent

        Column {
            width: parent.width
            clip: true

            Text {
                text: title
                width: parent.width
                wrapMode: Text.WordWrap
                font.pixelSize: 24
            }

            Text {
                text: text
                width: parent.width
                wrapMode: Text.WordWrap
                font.pixelSize: 20
            }

            Row {
                Image {
                    width: 16
                    height: 16

                    source: supplier.icon.url(Qt.size(width, height), Icon.List)
                }

                Text {
                    text: "Provided by " + supplier.name
                    font.pixelSize: 16
                }
            }

            Text {
                text: "Contributed by " + user.name
                font.pixelSize: 16
            }

            Text {
                text: attribution
                font.pixelSize: 8
            }
        }
    }
}

Véase también ImageModel, ReviewModel y EditorialModel.

Documentación de propiedades

name : string

Esta propiedad contiene el nombre de un usuario.

userId : string

Esta propiedad contiene el identificador único del usuario.

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