Thanks, I found the solution. I just needed to add the line:

Qt Code:
  1. ui->qwtPlot->setAutoReplot(true);
To copy to clipboard, switch view to plain text mode