geopolygon QML Value Type

地理多边形类型表示地理多边形。更多

Import Statement: import QtPositioning

详细说明

geopolygon 类型是表示地理多边形的geoshape 。它是QGeoPolygon 的直接表示,以path 定义,该 包含多边形中的地理坐标列表。

如果多边形路径中的坐标少于三个,则该多边形将被视为无效。

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

属性

路径

该属性包含定义多边形的坐标列表。

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