QtPositioning QML Type
O objeto global QtPositioning oferece funções úteis para trabalhar com tipos baseados em localização no QML. Mais...
| Import Statement: | import QtPositioning |
Métodos
- geoCircle circle()
- geoCircle circle(coordinate center, real radius)
- point coordToMercator(coordinate coord)
- coordinate coordinate()
- coordinate coordinate(real latitude, real longitude, real altitude)
- coordinate mercatorToCoord(point mercator)
- geoPath path()
- geoPath path(list<coordinate> coordinates, real width)
- geoPolygon polygon()
- geoPolygon polygon(list<coordinate> coordinates)
- geoPolygon polygon(list<coordinate> perimeter, list<list<coordinate>> holes)
- geoRectangle rectangle()
- geoRectangle rectangle(list<coordinate> coordinates)
- geoRectangle rectangle(coordinate topLeft, coordinate bottomRight)
- geoRectangle rectangle(coordinate center, real width, real height)
- geoShape shape()
- geoCircle shapeToCircle(geoShape shape)
- geoPath shapeToPath(geoShape shape)
- geoPolygon shapeToPolygon(geoShape shape)
- geoRectangle shapeToRectangle(geoShape shape)
Descrição detalhada
Documentação do método
geoCircle circle()
Cria um objeto ` geoCircle` inválido.
Veja também geoCircle.
geoCircle circle(coordinate center, real radius)
Cria um geoCircle com centro em center e raio de radius metros.
point coordToMercator(coordinate coord)
Converte uma coordenada coord em uma coordenada de Mercator e a retorna.
Veja também mercatorToCoord.
coordinate coordinate()
Cria uma coordenada inválida.
coordinate coordinate(real latitude, real longitude, real altitude)
Cria uma coordenada com os parâmetros especificados ` latitude`, ` longitude ` e, opcionalmente, ` altitude`. Tanto ` latitude ` quanto ` longitude ` devem ser válidos; caso contrário, é retornada uma coordenada inválida.
Veja também coordinate.
coordinate mercatorToCoord(point mercator)
Converte uma coordenada do sistema “ mercator ” em uma coordenada de latitude e longitude.
Veja também coordToMercator.
geoPath path()
Cria um objeto ` geoPath` vazio.
Veja também geoPath.
geoPath path(list<coordinate> coordinates, real width)
Cria um objeto ` geoPath ` a partir das coordenadas e da largura.
Veja também geoPath.
geoPolygon polygon()
Cria um polígono vazio.
Veja também ` geoPolygon`.
geoPolygon polygon(list<coordinate> coordinates)
Cria um polígono a partir de coordenadas.
Veja também geoPolygon.
geoPolygon polygon(list<coordinate> perimeter, list<list<coordinate>> holes)
Cria um polígono a partir das coordenadas do perímetro e dos orifícios internos.
Veja também geoPolygon.
geoRectangle rectangle()
Cria um objeto ` geoRectangle` inválido.
Veja também geoRectangle.
geoRectangle rectangle(list<coordinate> coordinates)
Cria uma lista “ geoRectangle ” a partir da lista de coordenadas; a lista retornada é a menor possível que contenha todas as coordenadas.
Veja também geoRectangle.
geoRectangle rectangle(coordinate topLeft, coordinate bottomRight)
Cria um retângulo geoRectangle com o canto superior esquerdo posicionado em topLeft e o canto inferior direito posicionado em bottomRight.
Veja também geoRectangle.
geoRectangle rectangle(coordinate center, real width, real height)
Cria um geoRectangle centralizado em center com largura de width graus e altura de height graus.
Veja também geoRectangle.
geoShape shape()
Cria um objeto ` geoShape` inválido.
Veja também geoShape.
geoCircle shapeToCircle(geoShape shape)
Converte shape em geoCircle.
Veja também geoCircle.
geoPath shapeToPath(geoShape shape)
Converte shape em geoPath.
Veja também geoPath.
geoPolygon shapeToPolygon(geoShape shape)
Converte um objeto do tipo “ shape ” em um polígono.
Veja também geoPolygon.
geoRectangle shapeToRectangle(geoShape shape)
Converte shape em geoRectangle.
Veja também geoRectangle.
© 2026 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.