Qt Positioning Reference Documentation

Positioning (C++)

Positioning

Requesting Location Data from Data Sources

Controlling Aspects of Data Sources

NMEA Data

Examples

Log File Position Source Example

Weather Info Example

Positioning Classes

Positioning (QML)

Location Positioning

Coordinates

Positions

PositionSource Type

Satellite Info Example

Qt Positioning Android plugin

Overview

Parameters

Altitude conversion

Examples

QML

C++

Qt Positioning GeoClue v2 plugin

Overview

Parameters

Examples

QML

C++

Qt Positioning Gypsy plugin

Overview

Parameters

Using GConf to set parameters

Examples

Qt Positioning NMEA plugin

Overview

Parameters

Position source usage example

QML

C++

Satellite information source usage example

QML

C++

Settings custom simulation speed

Interfaces between C++ and QML Code in Qt Positioning

Cpp_value_integration_positioning

Overview

Direct C++ Value Integration in QtPositioning

QVariant Based integration

Address - QGeoAddress

Location - QGeoLocation

Qt Positioning on Android

Using Qt Positioning from Android Services

Using Foreground Service

Use Background Location Permission

Clip2Tri Polygon Triangulation Library, version commit f62a734d22733814b8a970ed8a68a4d94c24fa5f

Clipper Polygon Clipping Library, version 6.4.2

Material Symbols and Icons

material_symbols_and_icons

Poly2Tri Polygon Triangulation Library, version commit a922022da4c0d3a55b1d6b6d634219caea653053

Titillium Web Font

titilliumweb_font

Changes to Qt Positioning

Breaking public API changes

Rename QGeoPolygon::path()

Use QGeoShape for QGeoLocation bounding area

C++

QML

Remove QGeoShape::extendShape()

Rename signal error to errorOccurred

Remove update timeout signals

Redesign NMEA support

Other API changes

Reset errors properly

Add QGeoAddress::streetNumber

Add timeout argument to PositionSource::update()

Refactor QGeoSatelliteInfo, QGeoPositionInfo and QGeoAreaMonitorInfo classes

Changes in Qt Positioning plugin implementation

Qt Positioning

Overview

Using the Module

QML API

C++ API

Building with CMake

Building with qmake

Permissions

Articles and Guides

Examples

Reference

Module Evolution

Licenses

Qt Positioning on iOS

Using Qt Positioning Services from an iOS App

Using Foreground Location Services Permission

Use Background Location Services Permission

Qt Positioning Plugins

Default plugins

Plugin Description

Implementing Plugins

Qt Positioning module topics

Log File Position Source (C++)

Running the Example

Creating custom Position Source

Satellite Info

Running the Example

UI walkthrough

Retrieving Current Position

Retrieving Satellite Information

Using Custom C++ Models

Satellite Model

Proxy Model

QML Module Registration

CMake Build

qmake Build

Source files

Weather Info

Running the Example

Weather Data Providers

Application Data Models

Expose Custom Models to QML

CMake Build

qmake Build

Instantiate the Models in QML

Background Location Limits

Foreground Service

ACCESS_BACKGROUND_LOCATION

Android getBearingAccuracyDegrees

Access Location in the Background

iOS courseAccuracy

GeoClue service

Gypsy daemon

GeoClue DesktopId property

Address

Example Usage

CoordinateAnimation

Location

Example Usage

PluginParameter

Example Usage

Position

Example Usage

PositionSource

Example Usage

Controlling Operation State

QtPositioning

SatelliteSource

Example Usage

geoCircle

Example Usage

geoCoordinate

Accuracy

Example Usage

geoPath

geoPolygon

geoRectangle

Limitations

Example Usage

geoSatelliteInfo

geoShape

Example Usage

Qt Positioning Examples

Qt Positioning C++ Classes

Using the Module

Building with CMake

Building with qmake

Qt Positioning QML Types

Value Types

Object Types