Hi,
i use a QwtPlot with a QwtPlotShapeItem...
path.addRect(....);
plotShapeItem.
setRenderHint(QwtPlotItem::RenderAntialiased,
true);
plotShapeItem.setShape(path);
plotShapeItem.
setItemAttibute(QwtPlotItem::Legend,
true);
plotShapeItem.setLegendMode(QwtPlotShapeItem::LegendShape);
plotShapeItem.
setLegendIconSize(QSize(20,
20));
plotShapeItem.
setTitle(QString("Winter"));
plotShapeItem.attach(&plot);
QPainterPath path;
path.addRect(....);
plotShapeItem.setRenderHint(QwtPlotItem::RenderAntialiased, true);
plotShapeItem.setShape(path);
plotShapeItem.setItemAttibute(QwtPlotItem::Legend, true);
plotShapeItem.setLegendMode(QwtPlotShapeItem::LegendShape);
plotShapeItem.setLegendIconSize(QSize(20, 20));
plotShapeItem.setTitle(QString("Winter"));
plotShapeItem.attach(&plot);
To copy to clipboard, switch view to plain text mode
how can i make the legend for plotShapeItem enabled? I dont know how to config the QwtLegend in this case... See here:
legend.png
I would need the QwtLegendLabel and call setchecked(true)...ideas?
Thanks,
S
Bookmarks