BoundingBoxThe BoundingBox element represents a rectangular geographic area. More... Inherits QtObject This type was introduced in Qt Location 5.0. Properties
Detailed DescriptionA BoundingBox is described by a Coordinate which represents the top-left of the BoundingBox and a second Coordinate which represents the bottom-right of BoundingBox. A BoundingBox is considered invalid if the top-left or bottom-right coordinates are invalid or if the top-left coordinate is South of the bottom-right coordinate. Bounding boxes can never cross the poles. If the height or center of a bounding box is adjusted such that it would cross one of the poles the height is modified such that the bounding box touches but does not cross the pole and that the center coordinate is still in the center of the bounding box. Example UsageThe following code snippet shows the declaration of a BoundingBox element. BoundingBox { topLeft: Coordinate { latitude: 23.34 longitude: 44.4 } bottomRight: Coordinate { latitude: 22.25 longitude: 42.88 } } This could then be used, for example, as a region to scan for landmarks, or refining searches. See also QGeoBoundingBox and .. Property DocumentationThis property holds the bottom left coordinate of this bounding box. Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change. See also QGeoBoundingBox. This property holds the bottom right coordinate of this bounding box. Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change. See also QGeoBoundingBox. For details on how to use this property to interface between C++ and QML see "Interfaces between C++ and QML Code". This property holds the center coordinate of this bounding box. Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change. See also QGeoBoundingBox. This property holds the height of this bounding box (in degrees). See also QGeoBoundingBox. This property holds the top left coordinate of this bounding box. Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change. See also QGeoBoundingBox. This property holds the top right coordinate of this bounding box. Note: this property's changed() signal is currently emitted only if the whole element changes, not if only the contents of the element change. See also QGeoBoundingBox. This property holds the width of this bounding box (in degrees). See also QGeoBoundingBox. |