Surfman19
5th August 2015, 14:47
Hi,
i use a QwtPlot with a QwtPlotShapeItem...
QPainterPath path;
path.addRect(....);
plotShapeItem.setRenderHint(QwtPlotItem::RenderAnt ialiased, true);
plotShapeItem.setShape(path);
plotShapeItem.setItemAttibute(QwtPlotItem::Legend, true);
plotShapeItem.setLegendMode(QwtPlotShapeItem::Lege ndShape);
plotShapeItem.setLegendIconSize(QSize(20, 20));
plotShapeItem.setTitle(QString("Winter"));
plotShapeItem.attach(&plot);
how can i make the legend for plotShapeItem enabled? I dont know how to config the QwtLegend in this case... See here:
11306
I would need the QwtLegendLabel and call setchecked(true)...ideas?
Thanks,
S
i use a QwtPlot with a QwtPlotShapeItem...
QPainterPath path;
path.addRect(....);
plotShapeItem.setRenderHint(QwtPlotItem::RenderAnt ialiased, true);
plotShapeItem.setShape(path);
plotShapeItem.setItemAttibute(QwtPlotItem::Legend, true);
plotShapeItem.setLegendMode(QwtPlotShapeItem::Lege ndShape);
plotShapeItem.setLegendIconSize(QSize(20, 20));
plotShapeItem.setTitle(QString("Winter"));
plotShapeItem.attach(&plot);
how can i make the legend for plotShapeItem enabled? I dont know how to config the QwtLegend in this case... See here:
11306
I would need the QwtLegendLabel and call setchecked(true)...ideas?
Thanks,
S