Hello. I would like to be able to change a QwtPlotCurve's title and color through the legend. I'm open to suggestions as to how to implement this. I'm thinking I will add code to the mousePressEvent() function in qwt_legend_label.cpp that will check if it was the RightButton that was selected. If so, popup a menu which would have various colors as menu items, as well as a menu item that says "change title". If the "change title" menu item is selected, I would somehow show a text editor that would allow the user to enter a new title. Then, somehow, I would have to get the new title back to the curve. This seems a bit clumsy to me. Does anyone have a better idea? Thank you.
Bookmarks