QtPositioning QML Type | Qt Positioning 5.15.19 (original) (raw)

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

Import Statement: import QtPositioning 5.15
Since: Qt 5.2

Methods

Detailed Description

import QtPositioning 5.2

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

Method Documentation

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

Constructs an invalid geocircle.

See also geocircle.

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

This method was introduced in Qt 5.12.

See also mercatorToCoord.

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.

Constructs an invalid coordinate.

Converts a mercator coordinate into a latitude-longitude coordinate.

This method was introduced in Qt 5.12.

See also coordToMercator.

Constructs a geopath from coordinates and width.

This method was introduced in Qt 5.9.

See also geopath.

Constructs an empty geopath.

This method was introduced in Qt 5.9.

See also geopath.

Constructs a polygon from coordinates for perimeter and inner holes.

This method was introduced in Qt 5.12.

See also geopolygon.

Constructs a polygon from coordinates.

This method was introduced in Qt 5.10.

See also geopolygon.

Constructs an empty polygon.

This method was introduced in Qt 5.10.

See also geopolygon.

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.

This method was introduced in Qt 5.5.

See also geocircle.

Converts shape to a geopath.

This method was introduced in Qt 5.9.

See also geopath.

Converts shape to a polygon.

This method was introduced in Qt 5.10.

See also geopolygon.

Converts shape to a georectangle.

This method was introduced in Qt 5.5.

See also georectangle.

© 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.