geoPolygon QML Value Type
geoPolygon 类型表示一个地理多边形。更多内容...
| Import Statement: | import QtPositioning |
属性
- path : list<geoCoordinate>
详细说明
geoPolygon 类型是一种geoShape ,用于表示地理多边形。它是QGeoPolygon 的直接表示形式,并通过path 进行定义,该 包含多边形内的geoCoordinates列表。
如果多边形的路径包含的坐标少于三个,则该多边形将被视为无效。
在与 C++ 集成时,请注意:任何传递给 QML 的QGeoPolygon 值都会自动转换为 geoPolygon,反之亦然。
属性文档
path : list<geoCoordinate>
该属性包含定义该多边形的坐标列表。
© 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.