本页内容

geoPath QML Value Type

geoPath 类型表示一条地理路径。更多内容...

Import Statement: import QtPositioning

属性

详细说明

geoPath 类型是一种地理路径(geoShape ),用于表示地理路径。它是地理坐标(QGeoPath )的直接表示形式,并通过path 进行定义,该 包含路径中的地理坐标(geoCoordinates)列表。

如果路径为空,则该路径被视为无效。

在与 C++ 集成时,请注意:从 C++ 传递到 QML 的任何QGeoPath 值都会自动转换为 geoPath 值,反之亦然。

属性文档

path : list<geoCoordinate>

该属性包含定义路径的坐标列表。

width : real

该属性存储路径的宽度(单位:米)。目前仅在调用contains()方法时使用。

宽度的默认值为 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.