geoPolygon QML Value Type
geoPolygon 类型表示地理多边形。更多
Import Statement: | import QtPositioning |
属性
- path : list<geoCoordinate>
详细说明
geoPolygon 类型是表示地理多边形的geoShape 。它是QGeoPolygon 的直接表示法,以path 定义,其中包含多边形中的地理坐标列表。
如果多边形路径中的坐标少于三个,则视为无效多边形。
在与 C++ 整合时,请注意传入 QML 的任何QGeoPolygon 值都会自动转换为 geoPolygon,反之亦然。
属性文档
path : list<geoCoordinate> |
该属性包含定义多边形的坐标列表。
© 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.