PlotMaerker Label Select&Move
Hello all,
I have a got a curve with plot markers and markers have got labels. What i have to do is these labels should be movable to another position by the user. Because there are a lot of labels, sometimes user may want to move some labels to see the others.
Is there a way to do this in qwt? Actually i searched internet but could not find much resource about qwt.
Re: PlotMaerker Label Select&Move
Have a look at the itemeditor example it shows how to drag&drop QwtPlotShapeItems. The code for QwtPlotMarkers should be very similar.
Uwe
Re: PlotMaerker Label Select&Move
Tahnks for your suggestion. I checked itemeditor example. But there is one problem. I am using qwt 5.2 and there is no QwtWidgetOverlay class is version 5.2. So what do you suggest to use instead of the qwtwidgetoverlay class ?
Re: PlotMaerker Label Select&Move
Qwt 5.2 is from 2009 and doesn't support current Qt versions, but when you really need it I would copy the implementation of QwtWidgetOverlay to your code - it should be almost independent from other Qwt classes.
Uwe
Re: PlotMaerker Label Select&Move
Yes it is old, our project too. :)
we are using qt 4.6 and qwt 5.2.
On my plot there are some markers with labels on the curve. Some labels are overlapping each other so user shall be able to move the label and see all labels.
In my case is it the best way to just copy qwtwidgetoverlay class code and use it ?