PDA

View Full Version : Detach QwtPlotCurve from only one QwtPlot



FelixB
13th July 2011, 07:42
Hello,

I'd like to attach one QwtPlotCurve to several QwtPlots. That is easy. But is there any way to detach this curve from only one plot? QwtPlotItem::detach() detaches the item from all plots... I need something like "QwtPlotItem::detachFrom(QwtPlot)". Is there any way to achieve this? I'm using Qwt 5.2.1.

thanks!
Felix

Uwe
13th July 2011, 08:55
A plot item can only be attached to one plot. Attaching an item to a second plot automatically detaches it from the first one.

Uwe