Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt example application for GPS
-
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.
-
@jsulm
I need a simple application that shows the current location in lattitude and longitude. I couldnt find any from those examples :/
-
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
-
@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
-
This post is deleted!
-
#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?