LocationThe Location element holds location data. More... Inherits QtObject This type was introduced in Qt Location 5.0. Properties
Detailed DescriptionLocation elements represent a geographic "location", in a human sense. This consists of a specific Coordinate, as well as an Address and a BoundingBox. The BoundingBox delineates the limits of what geographic area is considered "part of" the location. For example, a Location representing a house would have the Coordinate set to the center of the house's block of land, the Address to its street address, and the BoundingBox would show roughly the limits of the block itself. The Location element is most commonly seen as the contents of a search model such as the GeocodeModel. When a GeocodeModel returns the list of locations found for a given query, it represents these as Location elements. Example UsageThe following example shows a simple Location element being declared with a set coordinate and address. Address { id: houseAddress ... } Coordinate { id: coord latitude: -27.3; longitude: 153.1 } Location { coordinate: coord address: houseAddress } Property DocumentationThis property holds the address of the location which can be use to retrieve address details of the location. This property holds bounding box of area on map occupied by location. Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change. This property holds the exact geographical coordinate of the location which can be used to retrieve the latitude, longitude and altitude of the location. Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change. For details on how to use this property to interface between C++ and QML see "Interfaces between C++ and QML Code". |