Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Getting GPS coordinate in Qt 5 android application

$
0
0
Hello, [Note: Sorry if my English is not perfect, i’m French] I try to create a mobile application (for android at this moment) in order to just display current GPS coordinate. After some research, i found the Qt Location module. It seems perfect for my application, so i decide to use it. So i create a little program to display GPS coordinates in console (using QDebug). The application perfectly compile and i deploy it on my android (Alcatel 995 One-Touch, android api 15). But, when the application runs, i can’t get an instance with QGeoPositionInfoSource::createDefaultSource() but it returns 0. I also try to display all sources (using QGeoPositionInfoSource::availableSources()) but i get an empty QStringList. Yes, i check my GPS are turned on in my phone and i get the “android.permission.ACCESS_FINE_LOCATION” permission to my app. I also try my app on a simulator, but app doesn’t start because simulator not provide OpenGL ES API. Have some people any idea why i don’t have any sources for QGeoPositionInfoSource ? Thanks.

Viewing all articles
Browse latest Browse all 13965

Trending Articles