There is no setSamples() method for QwtPlotCurve that takes a double, double, and int as arguments. That's what the compiler is telling you.
QwtPlotCurve has no idea of the shape of the curve - it doesn't compute it, you have to compute it yourself and give the point values to QwtPlotCurve either as arrays (the setSamples version that takes double * xData, double * yData, int size as arguments) or as vectors (the setSamples version that takes QVector<double> & xData, QVector<double> & yData).
The code in the curvdemo1 example in your Qwt distribution shows one way of doing this.




Reply With Quote


Bookmarks