The QtPositioning global object provides useful functions for working with location-based types in QML. 更多...
import 语句: | import QtPositioning 5.15 |
Since: | Qt 5.2 |
import QtPositioning 5.2 Item { property variant coordinate: QtPositioning.coordinate(-27.5, 153.1) }
geocircle circle ( coordinate center , real radius ) |
Constructs a geocircle centered at center with a radius of radius meters.
geocircle circle () |
Constructs an invalid geocircle.
另请参阅 geocircle .
point coordToMercator ( coordinate coord ) |
Converts a coordinate coord into a mercator coordinate and returns it.
该方法在 Qt 5.12 引入。
另请参阅 mercatorToCoord .
coordinate coordinate ( real latitude , real longitude , real altitude ) |
Constructs a coordinate with the specified latitude , longitude 和可选 altitude . Both latitude and longitude must be valid, otherwise an invalid coordinate is returned.
另请参阅 coordinate .
coordinate coordinate () |
Constructs an invalid coordinate.
coordinate mercatorToCoord ( point mercator ) |
转换 mercator coordinate into a latitude-longitude coordinate.
该方法在 Qt 5.12 引入。
另请参阅 coordToMercator .
geopath path ( list < coordinate > coordinates , real width ) |
Constructs a geopath from coordinates and width.
This method was introduced in Qt 5.9.
另请参阅 geopath .
geopath path () |
Constructs an empty geopath.
This method was introduced in Qt 5.9.
另请参阅 geopath .
geopolygon polygon ( list < coordinate > perimeter , list < list < coordinate >> holes ) |
Constructs a polygon from coordinates for perimeter and inner holes.
该方法在 Qt 5.12 引入。
另请参阅 geopolygon .
geopolygon polygon ( list < coordinate > coordinates ) |
Constructs a polygon from coordinates.
This method was introduced in Qt 5.10.
另请参阅 geopolygon .
geopolygon polygon () |
Constructs an empty polygon.
This method was introduced in Qt 5.10.
另请参阅 geopolygon .
georectangle rectangle ( coordinate topLeft , coordinate bottomRight ) |
Constructs a georectangle with its top left corner positioned at topLeft and its bottom right corner positioned at bottomRight .
另请参阅 georectangle .
georectangle rectangle ( coordinate center , real width , real height ) |
Constructs a georectangle centered at center with a width of width degrees and a hight of height 度。
另请参阅 georectangle .
georectangle rectangle () |
Constructs an invalid georectangle.
另请参阅 georectangle .
geoshape shape () |
Constructs an invalid geoshape.
另请参阅 geoshape .
转换 shape to a geocircle.
该方法在 Qt 5.5 引入。
另请参阅 geocircle .
转换 shape to a geopath.
This method was introduced in Qt 5.9.
另请参阅 geopath .
geopolygon shapeToPolygon ( geoshape shape ) |
转换 shape to a polygon.
This method was introduced in Qt 5.10.
另请参阅 geopolygon .
georectangle shapeToRectangle ( geoshape shape ) |
转换 shape to a georectangle.
该方法在 Qt 5.5 引入。
另请参阅 georectangle .