One way is to snap a curve to your plot, i.e.:
QwtPlotCurve myCurve; myCurve->attach(&d_plot);
Then you can use (in a member function or anywhere) the QwtPlotCurve::setRawSample , which has the following pretty clear signature:
void QwtPlotCurve::setRawSample(const double* xData, const double* yData, int size);
Define your data and then call replot() to update the schedule. This means that you must also have a vector for x values.
The code will look like this:
int main( int argc, char **argv ) {
I suggest you study the Qwt doc about the curve
source share