QtPositioning QML Type

The QtPositioning global object provides useful functions for working with location-based types in QML. 更多...

import 語句: import QtPositioning 5.2
Since: Qt 5.2

方法

詳細描述

import QtPositioning 5.2
Item {
    property variant coordinate: QtPositioning.coordinate(-27.5, 153.1)
}
					

方法文檔編製

geocircle circle ( coordinate center , real radius ) const

Constructs a geocircle centered at center with a radius of radius meters.

geocircle circle () const

Constructs an invalid geocircle.

另請參閱 geocircle .

coordinate coordinate ( real latitude , real longitue , real altitude ) const

Constructs a coordinate with the specified latitude , longitude 和可選 altitude . Both latitude and longitude must be valid, otherwise an invalid coordinate is returned.

另請參閱 coordinate .

coordinate ()

Constructs an invalid coordinate.

geopath path () const

Constructs an empty geopath.

This QML method was introduced in Qt 5.9.

另請參閱 geopath .

georectangle rectangle ( coordinate topLeft , coordinate bottomRight ) const

Constructs a georectangle with its top left corner positioned at topLeft and its bottom right corner positioned at bottomLeft .

另請參閱 georectangle .

georectangle rectangle ( coordinate center , real width , real height ) const

Constructs a georectangle centered at center with a width of width degrees and a hight of height 度。

另請參閱 georectangle .

georectangle rectangle () const

Constructs an invalid georectangle.

另請參閱 georectangle .

geoshape shape () const

Constructs an invalid geoshape.

另請參閱 geoshape .

geocircle shapeToCircle ( geoshape shape ) const

轉換 shape to a geocircle.

This QML method was introduced in Qt 5.5.

另請參閱 geocircle .

geopath shapeToPath ( geoshape shape ) const

轉換 shape to a geopath.

This QML method was introduced in Qt 5.9.

另請參閱 geopath .

georectangle shapeToRectangle ( geoshape shape ) const

轉換 shape to a georectangle.

This QML method was introduced in Qt 5.5.

另請參閱 georectangle .