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.