geopath QML Value Type

geopath 类型表示地理路径。更多

Import Statement: import QtPositioning

详细说明

geopath 类型是表示地理路径的geoshape 。它是QGeoPath 的直接表示,以path 定义,该 包含路径中的地理坐标列表。

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

与 C++ 整合时,请注意任何从 C++ 传入 QML 的QGeoPath 值都会自动转换为geopath 值,反之亦然。

属性

路径

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

宽度

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

宽度的默认值为 0。

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