The Qt Positioning API provides positioning information via QML and C++ interfaces.
The Qt Positioning API gives developers the ability to determine a position by using a variety of possible sources, including satellite, or wifi, or text file, and so on. That information can then be used to for example determine a position on a map. In addition satellite information can be retrieved and area based monitoring can be performed.
find_package() command to locate the needed module components in the
find_package(Qt6 COMPONENTS Positioning REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Positioning)
See also 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
To load the Qt Positioning module, add the following statement to your .qml files
For C++ projects include the header appropriate for the current use case, for example applications using routes may use
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.
- Positioning introduction for C++
- Positioning introduction for QML
- Qt Positioning Plugins
- Interfaces between C++ and QML Code in Qt Positioning
- Qt Positioning on Android
© 2021 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.