O'Reilly logo

Application Development with Qt Creator - Second Edition by Ray Rischpater

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Determining the device location

Many devices support position determination, either through hardware such as a Global Positioning System (GPS) receiver or through network resources such as Internet Protocol (IP) geolocation. Similar to the other sensor support, this facility was introduced to Qt in Qt 4.x through the Qt Mobility module and is now supported through the Qt Positioning module. It's supported on many mobile devices, including Android.

To use the Qt Positioning module, you need to include the positioning keyword in your .pro file, as follows:

QT += qml quick network positioning

The Qt Positioning module provides three types of positioning; you can access these by importing the QtPositioning module:

  • PositionSource: This provides position ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required