![]() Registered Member ![]()
|
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 |
![]() KDE Developer ![]()
|
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(). |
![]() Registered Member ![]()
|
Hello Earthwings,
And thank you again for your help ! I will take a look to this. Nicolas |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], mesutakcan, Sogou [Bot]