Hello,
is there any possibility to clear the Data in a QwtPlotCurve object?

like: QwtPlotCurve MyCurve; MyCurve.clear(); or MyCurve.data.clear();
I've seen QwtPlot has a clear() function available.
I have "QwtPlotCurve MyCurve" objects living in mainwindow.cpp all the time. The only way to delete the Objects is with delete MyCurve and Creating it again with the new operator.

But i need the QwtPlotCurve- objects to be alive, the whole time.
In the case i have to implement this by myself, the Data in QwtPlotCurve is private... so i cannot inherit it?
thanks Astronomy