hello nix, thnks for reply..
with this code :
qDebug("Pi is %.12f", pi)
qDebug("Pi is %.12f", pi)
To copy to clipboard, switch view to plain text mode
its gimme value :
3.1415926535897931
3.1415926535897931
To copy to clipboard, switch view to plain text mode
its work on debug, but i still have problem with the code i share before :
new QGeoMapPixmapObject(QGeoCoordinate(latPoint,longPoint),m_markerOffset,m_markerIcon)
new QGeoMapPixmapObject(QGeoCoordinate(latPoint,longPoint),m_markerOffset,m_markerIcon)
To copy to clipboard, switch view to plain text mode
the problems are :
(latPoint,longPoint) ---> 1. only can be filled with double
2. its cant be filled with string
3. its cant be filled with qdebug value
But i need value of double with 12 precision...
Like i share before, im using database, so i call the value of field with this code :
qreal latPoint;
i=1
//how to get the real latitude value from database???
queryLat.prepare( "select latPOI from tabPOI where id in (:states)");
queryLat.bindValue(":states", i);
queryLat.exec();
qDebug() << "LATITUDE";
while( queryLat.next() ) {
latPoint = queryLat.value(0).toDouble();
}
new QGeoMapPixmapObject(QGeoCoordinate(latPoint,longPoint),m_markerOffset,m_markerIcon)
//conversion with .toDouble() only give me value with 6 precision.....
//is there another way of convertion format??
//like .toDouble(.%12f), maybe??? i dont know, please help me
QSqlQuery queryLat;
qreal latPoint;
i=1
//how to get the real latitude value from database???
queryLat.prepare( "select latPOI from tabPOI where id in (:states)");
queryLat.bindValue(":states", i);
queryLat.exec();
qDebug() << "LATITUDE";
while( queryLat.next() ) {
latPoint = queryLat.value(0).toDouble();
}
new QGeoMapPixmapObject(QGeoCoordinate(latPoint,longPoint),m_markerOffset,m_markerIcon)
//conversion with .toDouble() only give me value with 6 precision.....
//is there another way of convertion format??
//like .toDouble(.%12f), maybe??? i dont know, please help me
To copy to clipboard, switch view to plain text mode
is there something wrong with my CPUs ARM architectures??
Bookmarks