MapItemView QML Type
맵 항목 보기는 모델에서 맵을 채우는 데 사용됩니다. 더 보기...
Import Statement: | import QtLocation 6.8 |
Since: | QtLocation 5.5 |
- 상속된 멤버를 포함한 모든 멤버 목록
- MapItemView는 QML 맵 플러그인의 일부입니다.
속성
- add : Transition
(since QtLocation 5.12)
- autoFitViewport : bool
- delegate : Component
- model : model
- remove : Transition
(since QtLocation 5.12)
상세 설명
맵아이템뷰는 모델의 맵아이템으로 맵을 채우는 데 사용됩니다. MapItemView 유형은 맵에 포함되어 있을 때만 의미가 있으므로 독립형 프레젠테이션이 없습니다.
사용 예
이 예는 MapViewItem 객체를 사용하여 map 에 route 를 표시하는 방법을 보여줍니다:
import QtQuick import QtPositioning import QtLocation Map { RouteModel { id: routeModel } MapItemView { model: routeModel delegate: routeDelegate } Component { id: routeDelegate MapRoute { route: routeData line.color: "blue" line.width: 5 smooth: true opacity: 0.8 } } }
속성 문서
add : Transition |
이 속성은 뷰에서 생성된 맵 항목이 인스턴스화되어 맵에 추가될 때 적용되는 전환을 보유합니다.
이 속성은 QtLocation 5.12에 도입되었습니다.
autoFitViewport : bool |
이 속성은 항목이 추가되거나 제거될 때 모든 맵 항목을 표시하기 위해 뷰포트를 자동으로 패닝 및 확대/축소할지 여부를 제어합니다.
기본값은 false입니다.
delegate : Component |
이 프로퍼티에는 모델의 각 항목이 표시되는 방식을 정의하는 델리게이트가 있습니다. 컴포넌트에는 루트 객체로 정확히 하나의 MapItem 파생 객체가 포함되어야 합니다.
model : model |
이 속성은 델리게이트가 정의한 맵 항목을 만드는 데 사용되는 데이터를 제공하는 모델을 보유합니다. QAbstractItemModel 기반 모델만 지원됩니다.
remove : Transition |
이 속성은 뷰에서 만든 맵 항목이 제거될 때 적용되는 전환을 보유합니다.
이 속성은 QtLocation 5.12에 도입되었습니다.
© 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.