PySide6.QtLocation¶
- PySide6.QtLocation.QGeoCodeReply
- PySide6.QtLocation.QGeoCodingManager
- PySide6.QtLocation.QGeoCodingManagerEngine
- PySide6.QtLocation.QGeoManeuver
- PySide6.QtLocation.QGeoRoute
- PySide6.QtLocation.QGeoRouteReply
- PySide6.QtLocation.QGeoRouteRequest
- PySide6.QtLocation.QGeoRouteSegment
- PySide6.QtLocation.QGeoRoutingManager
- PySide6.QtLocation.QGeoRoutingManagerEngine
- PySide6.QtLocation.QGeoServiceProvider
- PySide6.QtLocation.QGeoServiceProviderFactory
- PySide6.QtLocation.QLocation
- PySide6.QtLocation.QPlace
- PySide6.QtLocation.QPlaceAttribute
- PySide6.QtLocation.QPlaceCategory
- PySide6.QtLocation.QPlaceContactDetail
- PySide6.QtLocation.QPlaceContent
- PySide6.QtLocation.QPlaceContentReply
- PySide6.QtLocation.QPlaceContentRequest
- PySide6.QtLocation.QPlaceDetailsReply
- PySide6.QtLocation.QPlaceIcon
- PySide6.QtLocation.QPlaceIdReply
- PySide6.QtLocation.QPlaceManager
- PySide6.QtLocation.QPlaceManagerEngine
- PySide6.QtLocation.QPlaceMatchReply
- PySide6.QtLocation.QPlaceMatchRequest
- PySide6.QtLocation.QPlaceProposedSearchResult
- PySide6.QtLocation.QPlaceRatings
- PySide6.QtLocation.QPlaceReply
- PySide6.QtLocation.QPlaceResult
- PySide6.QtLocation.QPlaceSearchReply
- PySide6.QtLocation.QPlaceSearchRequest
- PySide6.QtLocation.QPlaceSearchResult
- PySide6.QtLocation.QPlaceSearchSuggestionReply
- PySide6.QtLocation.QPlaceSupplier
- PySide6.QtLocation.QPlaceUser
Detailed Description¶
Provides QML and C++ interfaces to create location-aware applications.
The Qt Location module helps you create mapping solutions using data available from popular location service providers, such as Open Street Map .
The Qt Location API enables you to:
Access and present map data.
Support touch gesture on a specific area of the map.
Query for a specific geographical location and route.
Add additional layers on top, such as polylines and circles.
Search for places and related images.
Using the Module¶
QML API¶
To use the types, add the following import statements to your .qml
file:
Note
Many Qt Location QML module APIs are using types from the Qt Positioning module. For example, defining a coordinate to be the center of the map requires types from the Qt Positioning module.
C++ API¶
For C++ projects, include the header appropriate for the current use case; for example, applications using routes may use:
#include <QGeoRoute>
Using a Qt module’s C++ API requires linking against the module library, either directly or through other dependencies. Several build tools have dedicated support for this, including CMake and qmake.
Building with CMake¶
Use the find_package()
command to locate the needed module component in the Qt6
package:
find_package(Qt6 REQUIRED COMPONENTS Location) target_link_libraries(mytarget PRIVATE Qt6::Location)
For more details, see the Build with CMake overview.
Building with qmake¶
To configure the module for building with qmake, add the module as a value of the QT
variable in the project’s .pro file:
QT += location
Submodules¶
The API is split into sub-modules, which provide QML and C++ interfaces for specific purposes. They focus mainly on Map and Place information. The required position data can be retrieved using the QtPositioning module.
Places¶
The Places submodule is the natural complement to Positioning, providing a source of geographical data about Places of Interest (POI). Besides the source information, the API provides information about the location, size, and other related information about a POI. The Places API can also retrieve images, reviews, and other content related to a place.
Places introduction:
for QML
for C++
Examples¶
Examples demonstrating use of the Qt Location APIs
Maps and Navigation Tutorial
Tutorial introducing the QML Maps Types
API Reference¶
The following are lists of the classes and UI components provided by the module, with example applications to demonstrate their usage:
Full list of QML components in the Qt Location API
C++ API Reference by domain
Full list of C++ classes and methods of the Qt Location APIs sorted by domain
Full list of C++ classes and methods of the Qt Location APIs
Plugin References and Parameters¶
Information about plugins, important notes on their usage, parameters that can be provided to influence their behavior.
Qt-Location-Items-Overlay-Plugin
Provides an empty map intended to be used as background for an overlay layers for map items.
Qt-Location-Open-Street-Map-Plugin
Uses Open Street Map and related services.
Implementing New Back-Ends and Porting¶
For systems integrators and distributors, information related to making Qt Location available for a new platform.
GeoServices
Information about the Qt Location GeoServices plugins
Places
Information for places backend implementors
API changes
Information about porting from Qt 5 to Qt 6
Licenses¶
Qt Location is available under commercial licenses from The Qt Company. In addition, it is available under the GNU Lesser General Public License, version 3, or the GNU General Public License, version 2. See Qt Licensing for further details.
The module also provides QML types .
List of Classes¶
G |
|||
L |
|||
P |
|||