Qt example application for GPS
-
wrote on 10 Sept 2019, 06:39 last edited by
Hi,
I am using debian 10, Qt creator 4.8.2 based on qt 5.11.3 on a custom board.
I need a basic Qt test application for GPS.
Any idea?? -
Hi,
I am using debian 10, Qt creator 4.8.2 based on qt 5.11.3 on a custom board.
I need a basic Qt test application for GPS.
Any idea??@tech-hi See examples mentioned here: https://doc.qt.io/qt-5/qtpositioning-index.html
Also, if you want to let others know which Qt version you're using then don't mention Qt version which was used to build QtCreator - it is usually not the same version you're using. -
@tech-hi See examples mentioned here: https://doc.qt.io/qt-5/qtpositioning-index.html
Also, if you want to let others know which Qt version you're using then don't mention Qt version which was used to build QtCreator - it is usually not the same version you're using. -
@jsulm
I need a simple application that shows the current location in lattitude and longitude. I couldnt find any from those examples :/ -
@tech-hi
I need a simple application that shows the current location in lattitude and longitude. I couldnt find any from those examples
that's not true
from the GeoFlicker example
wrote on 7 Nov 2019, 09:34 last edited by@J-Hilk
Sorry I am new to programming and i dont have much idea to make use of that piece of code.
Can you be more clear, and help me to get the position.
Thank you -
@tech-hi
I need a simple application that shows the current location in lattitude and longitude. I couldnt find any from those examples
that's not true
from the GeoFlicker example
wrote on 7 Nov 2019, 09:53 last edited byThis post is deleted! -
wrote on 7 Nov 2019, 09:58 last edited by tech.hi 11 Jul 2019, 09:59
#include <iostream>
#include <QGeoCoordinate>
using namespace std;int main()
{
QGeoCoordinate qGeoCoord;
cout
<< "Lat.: " << qGeoCoord.latitude() << endl
<< "Long.: " << qGeoCoord.longitude() << endl
<< "Alt.: " << qGeoCoord.altitude() << endl;
return 0;
}This is a simple code which i wrote, but the output is just "-nan"
What more should i add to the code?