Hi,

I'm using QTM 1.1 and I've create my own QGeoPositionInfoSource which on
the desktop reads positions out of a network socket. On Maemo and
Symbian I'm using the default source, which is GPS.

Now it turned out, that if I run my code on the desktop the line:
  QGeoAreaMonitor::createDefaultMonitor(this);
returns null.

I've checked the code in qgeoareamonitor.cpp and it looks like there are
only implementations for Symbian, Maemo5 and Qt Simulator. Shouldn't
there be one for desktop as well? The code in
qgeoareamonitor_simulator.cpp seems to be generic, so why use it only
for the simulator?

Another problem I see is that the implementations of QGeoAreaMonitor
always call
  QGeoPositionInfoSource::createDefaultSource(this);
Thus it's not possible to use the monitors with your own position
source.

Well, I'm going to implement my own QGeoAreaMonitor now and it doesn't
look like too much work. But I think, this should at least be documented
somewhere. Or even better, allow us to register our custom position
source somewhere and then use that instead of the default one and
provide an implementation for the desktop.

Cheers,
Conny


_______________________________________________
Qt-mobility-feedback mailing list
Qt-mobility-feedback@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback

Reply via email to