Hi, I'm planning to add a plotPicker to my plot, and when the user selects a position on the plot I want to display the x and y values of a curve in its legend entry based on the plotPicker (basically I want to implement a cursor feature and display the values in the plotLegend).
I'm planning to overload QwtPlotItem::legendData() to return the 2 new attributes to the legend from my plotCurves, but I'm not sure what I need to change in the legend once I have these two new attributes that lets me define how they'll be displayed once they've been received by legendData(). I was hoping to put them in something like a QLabel with a border to distinguish these entries from the icon and title legend data attributes if at all possible.
If this isn't possible let me know if there's some other sort of separator I can use in the legend as I don't want to have something plain like just appending these values to the curve's title unless it's my only option.
Thanks,
TEAmerc
Bookmarks