The Qt Positioning API provides positioning information via QML and C++ interfaces.
The Qt Positioning API lets you to determine a position by using a variety of possible sources, including satellite, wifi, or text files. That information can then be used to, for example, determine a position on a map. In addition, you can use to the API to retrieve satellite information and perform area based monitoring.
The QML types of the module are available through the
QtPositioning import. To use the types, add the following import statement to your .qml file:
find_package() command to locate the needed module component in the
find_package(Qt6 REQUIRED COMPONENTS Positioning) target_link_libraries(mytarget PRIVATE Qt6::Positioning)
For more details, see the Build with CMake overview.
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 += positioning
- Positioning introduction for C++
- Positioning introduction for QML
- Qt Positioning Plugins
- Interfaces between C++ and QML Code in Qt Positioning
- Qt Positioning on Android
- Qt Positioning on iOS
Changes to Qt Positioning lists important changes in the module API and functionality that were done for the Qt 6 series of Qt.
Qt Positioning is available under commercial licenses from The Qt Company. In addition, it is available under free software licenses. Since Qt 5.4, these free software licenses are GNU Lesser General Public License, version 3, or the GNU General Public License, version 2. See Qt Licensing for further details.
© 2022 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.