Hi everyone,
thanks to a prototype implementation from Uwe I could create a small class that enables moving of legend items via mouse drag&drop. It uses overlay widgets as the ItemEditor example in the qwt-playground.
Take a look at the attached example code - all you need in your project is the legenditemmover.* files and creating an instance at the end of your plot setup. To test it, simply extract the archive to the playground subdir and build it alongside the other playground examples (add the subdir to playground.pro).
Have fun,
Andreas
PS: Requires QwtPlotLegendItem API functions from Qwt 6.3.0 (trunk)
Bookmarks