PlaceAttributeThe PlaceAttribute element holds generic place attribute information. More... Inherits QtObject This type was introduced in Qt Location 5.0. PropertiesDetailed DescriptionA place attribute stores an additional piece of information about a Place that is not otherwise exposed through the Place element. A PlaceAttribute is a textural piece of data, accessible through the text property, and a label. Both the text and label properties are intended to be displayed to the user. PlaceAttributes are stored in an ExtendedAttributes map with a unique key. The following example shows how to display all attributes in a list: import QtQuick 2.0 import QtLocation 5.0 ListView { model: place.extendedAttributes.keys() delegate: Text { text: "<b>" + place.extendedAttributes[modelData].label + ": </b>" + place.extendedAttributes[modelData].text } } Property DocumentationFor details on how to use this property to interface between C++ and QML see "Interfaces between C++ and QML Code". This property holds the attribute label which is a user visible string describing the attribute. This property holds the attribute text which can be used to show additional information about the place. |