Hello!

In one of my QwtPlots I have a couple of QwtPlotCurves with different styles (one is a normal line while the other is a dot line). In the same plot I have a QwtPlotLegendItem that serves as legends for these curves.

Now as far as I can see, the line style doesn't appear in the legend: both legends show a normal filled rectangle with the colors of the respective curves.

How can I customize the legend's rectangles appearence? I tried to customize all "draw" methods from QwtPlotLegendItem saying something like
Qt Code:
  1. painter->setBrush(Qt::Dense3Pattern);
To copy to clipboard, switch view to plain text mode 
, but nothing happens :T


Thanks,

Momergil