QtPositioning QML Type

Das globale Objekt QtPositioning bietet nützliche Funktionen für die Arbeit mit ortsbezogenen Typen in QML. Mehr...

Import Statement: import QtPositioning

Methoden

Detaillierte Beschreibung

import QtPositioning

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

Methode Dokumentation

geocircle circle()

Konstruiert einen ungültigen Geokreis.

Siehe auch geocircle.


geocircle circle(coordinate center, real radius)

Konstruiert einen Geokreis mit center als Mittelpunkt und einem Radius von radius Metern.


point coordToMercator(coordinate coord)

Konvertiert eine Koordinate coord in eine Mercator-Koordinate und gibt sie zurück.

Siehe auch mercatorToCoord.


coordinate coordinate()

Konstruiert eine ungültige Koordinate.


coordinate coordinate(real latitude, real longitude, real altitude)

Konstruiert eine Koordinate mit den angegebenen latitude, longitude und optional altitude. Sowohl latitude als auch longitude müssen gültig sein, andernfalls wird eine ungültige Koordinate zurückgegeben.

Siehe auch coordinate.


coordinate mercatorToCoord(point mercator)

Konvertiert eine mercator -Koordinate in eine Breitengrad-Längengrad-Koordinate.

Siehe auch coordToMercator.


geopath path()

Konstruiert einen leeren Geopfad.

Siehe auch geopath.


geopath path(list<coordinate> coordinates, real width)

Konstruiert einen Geopfad aus Koordinaten und Breite.

Siehe auch geopath.


geopolygon polygon()

Konstruiert ein leeres Polygon.

Siehe auch geopolygon.


geopolygon polygon(list<coordinate> coordinates)

Konstruiert ein Polygon aus Koordinaten.

Siehe auch geopolygon.


geopolygon polygon(list<coordinate> perimeter, list<list<coordinate>> holes)

Konstruiert ein Polygon aus Koordinaten für Umfang und innere Löcher.

Siehe auch geopolygon.


georectangle rectangle()

Konstruiert ein ungültiges Geodreieck.

Siehe auch georectangle.


georectangle rectangle(list<coordinate> coordinates)

Konstruiert ein Geodreieck aus der Liste der Koordinaten. Die zurückgegebene Liste ist die kleinstmögliche, die alle Koordinaten enthält.

Siehe auch georectangle.


georectangle rectangle(coordinate topLeft, coordinate bottomRight)

Konstruiert ein Geodreieck, dessen linke obere Ecke auf topLeft und dessen rechte untere Ecke auf bottomRight positioniert ist.

Siehe auch georectangle.


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

Konstruiert ein Geodreieck mit dem Mittelpunkt center, einer Breite von width und einer Höhe von height.

Siehe auch georectangle.


geoshape shape()

Konstruiert ein ungültiges Geoshape.

Siehe auch geoshape.


geocircle shapeToCircle(geoshape shape)

Konvertiert shape in einen Geokreis.

Siehe auch geocircle.


geopath shapeToPath(geoshape shape)

Konvertiert shape in einen Geopath.

Siehe auch geopath.


geopolygon shapeToPolygon(geoshape shape)

Konvertiert shape in ein Polygon.

Siehe auch geopolygon.


georectangle shapeToRectangle(geoshape shape)

Konvertiert shape in ein Geodreieck.

Siehe auch 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.