[Qt-interest] qt location examples that actually build with latest Nokia Qt SDK
Sivan Greenberg
sivan at omniqueue.com
Sun Nov 13 11:49:53 CET 2011
Hi all,
I am looking for an example that fetches location information
(lat/lon) that builds on the latest nokia qt sdk. I had no luck with
the online mobility location references, and when attempting to use
this[0] snippet, there's no way to tell which includes to use.
Can someone please help?
Thanks!
-Sivan
[0]:
class MyClass : public QObject
{
Q_OBJECT
public:
MyClass(QObject *parent = 0)
: QObject(parent)
{
QGeoPositionInfoSource *source =
QGeoPositionInfoSource::createDefaultSource();
if (source) {
connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)),
this, SLOT(positionUpdated(QGeoPositionInfo)));
source->startUpdates();
}
}
private slots:
void positionUpdated(const QGeoPositionInfo &info)
{
qDebug() << "Position updated:" << info;
}
};
--
-Sivan
More information about the Qt-interest-old
mailing list