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
49
The Qt Positioning API provides positioning information via QML and C++ interfaces.
50
51
Currently, the API is supported on \l {Qt for Android}{Android},
52
\l {Qt for iOS}{iOS}, \l {Qt for macOS}{\macos}, \l {Qt for Linux/X11}{Linux},
53
and \l {Qt for Windows}{Windows} (with GPS receivers exposed as a serial port
54
providing NMEA sentences or using \c {Windows.Devices.Geolocation}).
55
56
\section1 Overview
57
58
The Qt Positioning API lets you to determine a position by using a variety of
59
possible sources, including satellite, wifi, or text files. That information can
60
then be used to, for example, determine a position on a map. In addition, you
61
can use to the API to retrieve satellite information and perform area based
62
monitoring.
63
64
\section1 Using the Module
65
66
\section2 QML API
67
68
\include {module-use.qdocinc} {using the qml api} {QtPositioning}
69
70
\section2 C++ API
71
72
\include {module-use.qdocinc} {using the c++ api}
73
74
\section3 Building with CMake
75
76
\include {module-use.qdocinc} {building with cmake} {Positioning}
77
78
\section3 Building with qmake
79
80
\include {module-use.qdocinc} {building_with_qmake} {positioning}
81
82
\section1 Permissions
83
84
Starting from Qt 6.6, the Qt Positioning module uses new \l QPermission API
85
to handle \l {QLocationPermission}{location} permissions. This means that Qt
86
itself no longer queries for these permissions, so this needs to be done
87
directly from the client application.
88
89
Please refer to the \l {Application Permissions} page for an example of how
90
to integrate the new \l QPermission API into the application.
91
92
\section1 Articles and Guides
93
94
\list
95
\li \l {Positioning (C++)} {Positioning introduction for C++}
96
\li \l {Positioning (QML)} {Positioning introduction for QML}
97
\li \l {Qt Positioning Plugins}
98
\li \l {Interfaces between C++ and QML Code in Qt Positioning}
99
\li \l {Qt Positioning on Android}
100
\li \l {Qt Positioning on iOS}
101
\endlist
102
103
\section1 Examples
104
105
\list
106
\li \l {Qt Positioning Examples}
107
\endlist
108
109
\section1 Reference
110
111
\list
112
\li \l {Qt Positioning C++ Classes}
113
\li \l {Qt Positioning QML Types}
114
\endlist
115
116
\section1 Module Evolution
117
118
\l {Changes to Qt Positioning} lists important changes in the module API and
119
functionality that were done for the Qt 6 series of Qt.
120
121
\section1 Licenses
122
123
Qt Positioning is available under commercial licenses from \l{The Qt Company}.
124
In addition, it is available under free software licenses. Since Qt 5.4,
125
these free software licenses are
126
\l{GNU Lesser General Public License, version 3}, or
127
the \l{GNU General Public License, version 2}.
128
See \l{Qt Licensing} for further details.
129
*/
qtpositioning
src
positioning
doc
src
qtpositioning.qdoc
Generated on Mon Mar 10 2025 01:10:56 for Qt by
1.13.2