Hello!

I want to attach a QwtPlotCurve into a QwtPlot and later be able to dettach it. One obvious way to do this is to create the QwtPlotCurve as a global pointer and than just call it lather when desired, but I would like to avoid using a global pointer in this situation since such methodology would force me to have a unknown multitude of global pointers.

So rather what I would like to do is to create a local pointer to a QwtPlotCurve object, configure it, attach to the QwtPlot and when desired find that child object from the QwtPlot and ask it to be dettached and deleted.

How could I do this?


Thanks,

Momergil