QCustomPlot Discussion and Comments

plot warningReturn to overview

Dear all
I use QCustomPlot class to draw data figure.
Recently, when I continune plotting for a long time by the following code:
customPlot->graph(0)->setData(x,y);
ui->customPlot->graph(0)->rescaleAxes();
ui->customPlot->replot();

The program always crashed with the warning message: QBackingStore::endPaint() called with active painter on backingstore paint device.

Could you please give me some advice?
Thanks
Tom

Your code looks fine, every QCP program works exactly this way. First let's go through the obvious questions:
- What platform / compiler / architecture?
- What versions of QCustomPlot, Qt
- Any difference between OpenGL / raster?

The easiest way for us to help is if you post a minimal example demonstrating the problem.