[Marble-devel] Show GPS Position in MarbleWidget
Malte Klug
MalteKlug at gmx.de
Fri Apr 1 11:06:16 CEST 2011
Hello everybody,
I am fairly new to Marble, as I have only been working with it for a couple of days. What I am currently doing is using the MarbleWidget in a QML file as a part of an application. For this purpose, I have wrapped the MarbleWidget in a class inheriting from QGraphicsProxyWidget in order to register this class as a new QML type. All the configuration I needed to do (e.g. setShowCrosshairs(false)) is done in the constructor of said wrapper class. Up to here everything went well.
Now I am trying to show the GPS position. I assumed this would be possible by calling MarbleWidget's setShowGps(true). However, this seems to have no effect at all, although showGps() returns true. My GPS position provider is gpsd, which works fine. I was able to verify this using xgps, even the Marble application itself shows the position when activated under "Current Location". I read every Marble tutorial, how-to and example I could get my hands on and also briefly checked the archive of this mailing list, but I have not found anything on how to get the GPS position shown in MarbleWidget. I do not know, whether I am totally missing out something, but I did not manage to make any progress in this, so maybe you guys could give me a hint on how I could go on/solve the issue.
Here are some further information about the environment I am developing in: I use Ubuntu 10.10, Qt 4.7 and QtCreator.
Thanks in advance
Malte Klug
--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone
More information about the Marble-devel
mailing list