Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtpositioning.qdoc
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \module QtPositioning
6 \title Qt Positioning C++ Classes
7 \ingroup modules
8 \qtcmakepackage Positioning
9 \qtvariable positioning
10
11 \brief The Positioning module provides positioning information via QML and C++ interfaces.
12
13 To load the Qt Positioning module, add the following statement to your .qml files
14
15 \snippet doc_src_qtpositioning.qml import
16
17 For C++ projects include the header appropriate for the current use case,
18 for example applications using routes may use
19
20 \code
21 #include <QGeoCoordinate>
22 \endcode
23
24 \include module-use.qdocinc using qt module
25
26 \badcode
27 find_package(Qt6 REQUIRED COMPONENTS Positioning)
28 target_link_libraries(mytarget PRIVATE Qt6::Positioning)
29 \endcode
30
31 \include module-use.qdocinc building with qmake
32
33 \badcode
34 QT += positioning
35 \endcode
36
37 See more in the \l{Qt Positioning}{Qt Positioning Overview}.
38
39*/
40
41
42
43/*!
44\page qtpositioning-index.html
45\title Qt Positioning
46\brief The Qt Positioning API provides positioning information via QML and C++ interfaces.
47\ingroup technology-apis
48
49The Qt Positioning API provides positioning information via QML and C++ interfaces.
50
51See \l {Qt Positioning Plugins} for the list of available plugins and their
52supported platforms.
53
54\section1 Overview
55
56The Qt Positioning API lets you to determine a position by using a variety of
57possible sources, including satellite, wifi, or text files. That information can
58then be used to, for example, determine a position on a map. In addition, you
59can use to the API to retrieve satellite information and perform area based
60monitoring.
61
62\section1 Using the Module
63
64\section2 QML API
65
66\include {module-use.qdocinc} {using the qml api} {QtPositioning}
67
68\section2 C++ API
69
70\include {module-use.qdocinc} {using the c++ api}
71
72\section3 Building with CMake
73
74\include {module-use.qdocinc} {building with cmake} {Positioning}
75
76\section3 Building with qmake
77
78\include {module-use.qdocinc} {building_with_qmake} {positioning}
79
80\section1 Permissions
81
82Starting from Qt 6.6, the Qt Positioning module uses new \l QPermission API
83to handle \l {QLocationPermission}{location} permissions. This means that Qt
84itself no longer queries for these permissions, so this needs to be done
85directly from the client application.
86
87Please refer to the \l {Application Permissions} page for an example of how
88to integrate the new \l QPermission API into the application.
89
90\section1 Articles and Guides
91
92\list
93 \li \l {Positioning (C++)} {Positioning introduction for C++}
94 \li \l {Positioning (QML)} {Positioning introduction for QML}
95 \li \l {Qt Positioning Plugins}
96 \li \l {Interfaces between C++ and QML Code in Qt Positioning}
97 \li \l {Qt Positioning on Android}
98 \li \l {Qt Positioning on iOS}
99 \li \l {Qt Positioning Security Considerations}
100\endlist
101
102\section1 Examples
103
104\list
105 \li \l {Qt Positioning Examples}
106\endlist
107
108\section1 Reference
109
110\list
111 \li \l {Qt Positioning C++ Classes}
112 \li \l {Qt Positioning QML Types}
113\endlist
114
115\section1 Module Evolution
116
117\l {Changes to Qt Positioning} lists important changes in the module API and
118functionality that were done for the Qt 6 series of Qt.
119
120\section1 Licenses
121
122Qt Positioning is available under commercial licenses from \l{The Qt Company}.
123In addition, it is available under free software licenses. Since Qt 5.4,
124these free software licenses are
125\l{GNU Lesser General Public License, version 3}, or
126the \l{GNU General Public License, version 2}.
127See \l{Qt Licensing} for further details.
128*/