En esta página

geoPath QML Value Type

El tipo «geoPath» representa una ruta geográfica. Más información...

Import Statement: import QtPositioning

Propiedades

Descripción detallada

El tipo geoPath es un objeto de tipo « geoShape » que representa una ruta geográfica. Es una representación directa de un objeto de tipo « QGeoPath » y se define en términos de un objeto de tipo « path », que contiene la lista de «geoCoordinates» de la ruta.

La ruta se considera inválida si está vacía.

Al integrar con C++, ten en cuenta que cualquier valor de « QGeoPath » pasado a QML desde C++ se convierte automáticamente en un valor de «geoPath», y viceversa.

Documentación de propiedades

path : list<geoCoordinate>

Esta propiedad contiene la lista de coordenadas que definen la ruta.

width : real

Esta propiedad contiene la anchura de la ruta en metros. Actualmente, solo se utiliza al llamar al método ` contains()`.

El valor por defecto de la anchura es 0.

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