user QML Value Type | Qt Location | Qt 6.11.0
Description: The user type identifies a user who contributed a particular Place content item.

- Qt 6.11
- Qt Location
- QML Types
- user
- Qt 6.11.0 Reference Documentation

# user QML Value Type

The user type identifies a user who contributed a particular Place content item. More...

Import Statement: | `import QtLocation 6.11`
Since: | QtLocation 5.5

## Properties

- name : string
- userId : string

## Detailed Description

Each Place content item has an associated user who contributed the content. This type provides information about that user.

## Example

The following example shows how to display information about the user who submitted an 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
                 }
             }
         }
     }

See also ImageModel, ReviewModel, and EditorialModel.

## Property Documentation

### name : string

This property holds the name of a user.

### userId : string

This property holds the unique identifier of the user.