QtPositioning QML Type
The QtPositioning global object provides useful functions for working with location-based types in QML. More...
Import Statement: | import QtPositioning 5.14 |
Since: | Qt 5.2 |
Methods
- geocircle circle(center, real radius)
- geocircle circle()
- point coordToMercator(coord)
- coordinate coordinate(latitude, real longitude, real altitude)
- coordinate coordinate()
- coordinate mercatorToCoord(mercator)
- geopath path(coordinates, real width)
- geopath path()
- geopolygon polygon(perimeter, list<list<coordinate>> holes)
- geopolygon polygon(coordinates)
- geopolygon polygon()
- georectangle rectangle(topLeft, coordinate bottomRight)
- georectangle rectangle(center, real width, real height)
- georectangle rectangle()
- geoshape shape()
- geocircle shapeToCircle(shape)
- geopath shapeToPath(shape)
- geopolygon shapeToPolygon(shape)
- georectangle shapeToRectangle(shape)
Detailed Description
import QtPositioning 5.2 Item { property variant coordinate: QtPositioning.coordinate(-27.5, 153.1) }
Method Documentation
geocircle circle(center, real radius)
Constructs a geocircle centered at center with a radius of radius meters.
geocircle circle()
Constructs an invalid geocircle.
See also geocircle.
point coordToMercator(coord)
Converts a coordinate coord into a mercator coordinate and returns it.
This method was introduced in Qt 5.12.
See also mercatorToCoord.
coordinate coordinate(latitude, real longitude, real altitude)
Constructs a coordinate with the specified latitude, longitude and optional altitude. Both latitude and longitude must be valid, otherwise an invalid coordinate is returned.
See also coordinate.
coordinate coordinate()
Constructs an invalid coordinate.
coordinate mercatorToCoord(mercator)
Converts a mercator coordinate into a latitude-longitude coordinate.
This method was introduced in Qt 5.12.
See also coordToMercator.
geopath path(coordinates, real width)
Constructs a geopath from coordinates and width.
This method was introduced in Qt 5.9.
See also geopath.
geopath path()
Constructs an empty geopath.
This method was introduced in Qt 5.9.
See also geopath.
geopolygon polygon(perimeter, list<list<coordinate>> holes)
Constructs a polygon from coordinates for perimeter and inner holes.
This method was introduced in Qt 5.12.
See also geopolygon.
geopolygon polygon(coordinates)
Constructs a polygon from coordinates.
This method was introduced in Qt 5.10.
See also geopolygon.
geopolygon polygon()
Constructs an empty polygon.
This method was introduced in Qt 5.10.
See also geopolygon.
georectangle rectangle(topLeft, coordinate bottomRight)
Constructs a georectangle with its top left corner positioned at topLeft and its bottom right corner positioned at bottomRight.
See also georectangle.
georectangle rectangle(center, real width, real height)
Constructs a georectangle centered at center with a width of width degrees and a hight of height degrees.
See also georectangle.
georectangle rectangle()
Constructs an invalid georectangle.
See also georectangle.
geoshape shape()
Constructs an invalid geoshape.
See also geoshape.
geocircle shapeToCircle(shape)
Converts shape to a geocircle.
This method was introduced in Qt 5.5.
See also geocircle.
geopath shapeToPath(shape)
Converts shape to a geopath.
This method was introduced in Qt 5.9.
See also geopath.
geopolygon shapeToPolygon(shape)
Converts shape to a polygon.
This method was introduced in Qt 5.10.
See also geopolygon.
georectangle shapeToRectangle(shape)
Converts shape to a georectangle.
This method was introduced in Qt 5.5.
See also georectangle.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.14/qml-qtpositioning-qtpositioning.html