additional LegendAttribute
Brought to you by:
rathmann
I am creating the plot in a first step with legend enabled, then in a second step I am attaching a curve.
If the curve has no title, only the line corresponding to the Plot line is showed in the legend, without any text.
I would like in such cases to be able to set the LegendAttribute to something like "LegendNoShowItem", which should be an additional attribute of Legend. Of course the corresponding functionality should also be implemented.
Anonymous
Hello Alain,
Probably you want to use QwtPlotItem::Legend attribute to hide your curve from legend.
Try using curve->setItemAttribute(QwtPlotItem::Legend, false);
where curve is pointer to QwtPlotCurve instance
Regards,
Sergey P.
Hello Sergey,
I thank you for your hint, works fine!
Regards
Alain