Karim M. El Tel
Karim M. El Tel

Reputation: 438

Retrieving the position of the phone using GPS in Qt

I want to know the longitude and the latitude of the phone, and for that I must use the QtLocation library.

For best results, which class and function should I use?

Upvotes: 2

Views: 1802

Answers (1)

fejd
fejd

Reputation: 2565

The information comes from the Qt Mobility class QGeoPositionInfoSource. You will find an example here.

Upvotes: 1

Related Questions