IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QtPositioning QML Type

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

This type was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QtPositioning QML Type▲

  • Import Statement: import QtPositioning 6.4

  • Since: Qt 5.2

Detailed Description▲

 
Sélectionnez
import QtPositioning

Item {
    property var coordinate: QtPositioning.coordinate(-27.5, 153.1)
}

Method Documentation▲

 

geocircle circle()▲

Constructs an invalid geocircle.

See Also▲

See also geocircle

geocircle circle(coordinate center, real radius)▲

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

[since 5.12] point coordToMercator(coordinate coord)▲

Converts a coordinate coord into a mercator coordinate and returns it.

This method was introduced in Qt 5.12.

See Also▲

See also mercatorToCoord

coordinate coordinate()▲

Constructs an invalid coordinate.

coordinate coordinate(real 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▲

See also coordinate

[since 5.12] coordinate mercatorToCoord(point mercator)▲

Converts a mercator coordinate into a latitude-longitude coordinate.

This method was introduced in Qt 5.12.

See Also▲

See also coordToMercator

[since 5.9] geopath path()▲

Constructs an empty geopath.

This method was introduced in Qt 5.9.

See Also▲

See also geopath

[since 5.9] geopath path(list<coordinate> coordinates, real width)▲

Constructs a geopath from coordinates and width.

This method was introduced in Qt 5.9.

See Also▲

See also geopath

[since 5.10] geopolygon polygon()▲

Constructs an empty polygon.

This method was introduced in Qt 5.10.

See Also▲

See also geopolygon

[since 5.10] geopolygon polygon(list<coordinate> coordinates)▲

Constructs a polygon from coordinates.

This method was introduced in Qt 5.10.

See Also▲

See also geopolygon

[since 5.12] geopolygon polygon(list<coordinate> 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▲

See also geopolygon

georectangle rectangle()▲

Constructs an invalid georectangle.

See Also▲

See also 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 degrees.

See Also▲

See also georectangle

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.

See Also▲

See also georectangle

geoshape shape()▲

Constructs an invalid geoshape.

See Also▲

See also geoshape

[since 5.5] geocircle shapeToCircle(geoshape shape)▲

Converts shape to a geocircle.

This method was introduced in Qt 5.5.

See Also▲

See also geocircle

[since 5.9] geopath shapeToPath(geoshape shape)▲

Converts shape to a geopath.

This method was introduced in Qt 5.9.

See Also▲

See also geopath

[since 5.10] geopolygon shapeToPolygon(geoshape shape)▲

Converts shape to a polygon.

This method was introduced in Qt 5.10.

See Also▲

See also geopolygon

[since 5.5] georectangle shapeToRectangle(geoshape shape)▲

Converts shape to a georectangle.

This method was introduced in Qt 5.5.

See Also▲

See also georectangle

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+