This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[MARBLE] Build a new float item ?

Tags: None
(comma "," separated)
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


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], mesutakcan, Sogou [Bot]