If i do the following:
Qt Code:
  1. QwtLegend* legend = new QwtLegend();
  2. 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
Qt Code:
  1. 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?