user QML Value Type
사용자 유형은 특정 Place 콘텐츠 항목을 제공한 사용자를 식별합니다. 더 보기...
| Import Statement: | import QtLocation 6.12 |
| Since: | QtLocation 5.5 |
속성
상세 설명
각 Place 콘텐츠 항목에는 해당 콘텐츠를 제공한 사용자가 연결되어 있습니다. 이 유형은 해당 사용자에 대한 정보를 제공합니다.
예시
다음 예제는 기사를 제출한 사용자에 대한 정보를 표시하는 방법을 보여줍니다:
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
}
}
}
}참조: ImageModel, ReviewModel, EditorialModel.
속성 설명서
name : string
이 속성에는 사용자의 이름이 저장됩니다.
userId : string
이 속성은 사용자의 고유 식별자를 저장합니다.
© 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.