user QML Value Type
사용자 유형은 특정 Place 콘텐츠 항목에 기여한 사용자를 식별합니다. 더 보기...
Import Statement: | import QtLocation 6.8 |
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 |
이 속성에는 사용자의 고유 식별자가 저장됩니다.
© 2025 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.