MapObjectView QML Type | Qt Location 5.15.19 (original) (raw)

The MapObjectView is used to populate Map with map objects from a model. More...

Import Statement: import Qt.labs.location 1.0

Properties

Methods

Detailed Description

The MapObjectView is used to populate Map with map objects, either from a model or via addMapObject or removeMapObject.

The MapObjectView type only makes sense when contained in a Map, meaning that it will not work when added inside other QML elements. This can also be intended as an object layer on top of a Map.

Property Documentation

This property holds the delegate which defines how each item in the model should be displayed. The Component must contain exactly one QGeoMapObject -derived object as the root object.

This property holds the model that provides data used for creating the map items defined by the delegate. Only QAbstractItemModel based models are supported.

Method Documentation

void addMapObject(MapObject object)

void removeMapObject(MapObject object)

© 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.