QtPositioning QML Type | Qt Positioning (original) (raw)
The QtPositioning global object provides useful functions for working with location-based types in QML. More...
Import Statement: | import QtPositioning |
---|
Methods
- geocircle circle()
- geocircle circle(coordinate center, real radius)
- point coordToMercator(coordinate coord)
- coordinate coordinate()
- coordinate coordinate(real latitude, real longitude, real altitude)
- coordinate mercatorToCoord(point mercator)
- geopath path()
- geopath path(list coordinates, real width)
- geopolygon polygon()
- geopolygon polygon(list coordinates)
- geopolygon polygon(list perimeter, list<list> holes)
- georectangle rectangle()
- georectangle rectangle(list coordinates)
- georectangle rectangle(coordinate topLeft, coordinate bottomRight)
- georectangle rectangle(coordinate center, real width, real height)
- geoshape shape()
- geocircle shapeToCircle(geoshape shape)
- geopath shapeToPath(geoshape shape)
- geopolygon shapeToPolygon(geoshape shape)
- georectangle shapeToRectangle(geoshape shape)
Detailed Description
import QtPositioning
Item { property var coordinate: QtPositioning.coordinate(-27.5, 153.1) }
Method Documentation
Constructs an invalid geocircle.
See also geocircle.
Constructs a geocircle centered at center with a radius of radius meters.
Converts a coordinate coord into a mercator coordinate and returns it.
See also mercatorToCoord.
Constructs an invalid coordinate.
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.
Converts a mercator coordinate into a latitude-longitude coordinate.
See also coordToMercator.
Constructs an empty geopath.
See also geopath.
Constructs a geopath from coordinates and width.
See also geopath.
Constructs a polygon from coordinates.
See also geopolygon.
Constructs a polygon from coordinates for perimeter and inner holes.
See also geopolygon.
Constructs a georectangle from the list of coordinates, the returned list is the smallest possible containing all the coordinates.
See also georectangle.
Constructs a georectangle with its top left corner positioned at topLeft and its bottom right corner positioned at bottomRight.
See also georectangle.
Constructs a georectangle centered at center with a width of width degrees and a hight of height degrees.
See also georectangle.
Constructs an invalid geoshape.
See also geoshape.
Converts shape to a geocircle.
See also geocircle.
Converts shape to a geopath.
See also geopath.
© 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.