These examples show a range of different uses for Qt Location , such as displaying a map within a QML user interface, implementing basic routing and place search, as well as integrating positioning data types.
These examples can work with any of the available geo services plugins. However, some plugins may require additional 插件参数 in order to function correctly. The default plugin used by these examples is Qt Location 开放式街道地图插件 , which does not require any parameters.
The GeoJson viewer example demonstrates how to manipulate MapItems, handle user input and I/O to and from a GeoJson file. | |
The Map Viewer example shows how to display and interact with a map, search for an address, and find driving directions. | |
How to use transitions together with MapItemView. | |
The minimum code to display a map using Qt Quick. | |
The Places example demonstrates how to search for Places and access related content. | |
The Places List example demonstrates how to search for and display a list of places using a ListView. | |
The Places Map example demonstrates how to search for and display a list of places on a map using a MapItemView. | |
The Plane Spotter example demonstrates the tight integration of location and positioning data types into QML. |