Reply to topic

[MARBLE] Build a new float item ?

nmoreno
Registered Member
Posts
19
Karma
0

[MARBLE] Build a new float item ?

Tue Dec 29, 2015 7:55 am
Hello,

I would like to create a new float item over the map. Is it possible? Is there an example?

I suppose I have to derive from AbstractFloatItem, but after? How can I set position over the map... ?

Thanks in advance for your help,
Nicolas
User avatar Earthwings
KDE Developer
Posts
172
Karma
1
OS
Hi,

yes, that is possible by writing a float item plugin. See https://quickgit.kde.org/?p=marble.git& ... Ffloatitem for an example as well as the other existing float items in src/plugins/render/. The position on the map is determined by the QPointF parameter passed to the AbstractFloatItem constructor and can be changed later on by calling setPosition().
nmoreno
Registered Member
Posts
19
Karma
0
Hello Earthwings,

And thank you again for your help ! I will take a look to this.

Nicolas

 
Reply to topic

Bookmarks



Who is online

Registered users: adsbn, Baidu [Spider], beerislife, benita, Bing [Bot], extinct, gerdeg, Google [Bot], JesusM, Majestic-12 [Bot], nettek, peje, protonic, Shane15, Skrachen, Sogou [Bot], Yahoo [Bot]