Hello,
so i have an application where a lot of curves can be on the plot at one time. I have written a method that lets me select one of these curves by clicking on it.
To indicate clearly that this line has been selected i set the color of it to red and increase the width.
Now i also want to get this curve to be drawn on top of all the other curves.
To do this i use the setZ() method of QwtPlotCurve and it works just fine.
But my problem is that everytime i use setZ() on a Curve the associated LegendLabel gets removed and a new one gets attached to my Legend and is now deselected and not in the position it was at the beginning.
I need the LegendLabel to stay selected (which is no problem) and also be in the same position.
Is there any way i can avoid that a new LegendLabel gets added or find out the position of the old LegendLabel and put the new LegendLabel in the same position?
The Version im using is 6.1.0
Solove.




Reply With Quote

Bookmarks