If i do the following:
plot->insertLegend(legend);
QwtLegend* legend = new QwtLegend();
plot->insertLegend(legend);
To copy to clipboard, switch view to plain text mode
will the legend automatically display all the items of the plot?
Currently, I'm reimplementing
drawLegendIdentifier
(QPainter*,
const QRectF
&)
drawLegendIdentifier(QPainter*, const QRectF&)
To copy to clipboard, switch view to plain text mode
in my custom PlotItem, in which i'm filling the rectangle i get with the item's color. Is there any other function with which i can paint the text(title of the item) next to this rectangle?
Bookmarks