Qt Location 实例
这些示例展示了 Qt Location的各种不同用途,如在 QML 用户界面中显示地图、实现基本路由和地点搜索,以及集成定位数据类型。
这些示例可与任何可用的地理服务插件配合使用。不过,有些插件可能需要额外的plugin parameters 才能正常运行。这些示例使用的默认插件是Qt Location Open Street Map Plugin,它不需要任何参数。
GeoJson 查看器示例演示了如何操作 MapItems、处理用户输入以及 GeoJson 文件的输入/输出。 | |
地图查看器示例展示了如何显示地图并与之交互、搜索地址以及查找行车路线。 | |
如何将过渡效果与 MapItemView 结合使用。 | |
使用Qt Quick 显示地图的最少代码。 | |
地点示例演示如何搜索地点并访问相关内容。 | |
地点列表示例演示了如何使用 ListView 搜索和显示地点列表。 | |
地点地图示例演示了如何使用 MapItemView 在地图上搜索和显示地点列表。 | |
Plane Spotter 示例演示了如何将位置和定位数据类型紧密集成到 QML 中。 |
© 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.