Hi.
I tried to put a legend in Hisotrgr. Although the legend is displayed, there are no symbols attached to the text in the legend.
Why?

Qt Code:
  1. legend = new QwtLegend;
  2.  
  3.  
  4.  
  5. rataPlot = new HistogramItem(tr("Rata"));
  6. rataPlot->attach(qwtPlot);
  7. rataPlot->setColor(Qt::red);
  8.  
  9. rawPlot = new HistogramItem(tr("MOL - Dati grezzi"));
  10. rawPlot->attach(qwtPlot);
  11. rawPlot->setColor(Qt::darkGray);
  12.  
  13. qwtPlot->setCanvasBackground(QColor(Qt::white));
  14.  
  15. qwtPlot->insertLegend(legend,QwtPlot::BottomLegend);
To copy to clipboard, switch view to plain text mode