Hello! I am working with bar chart and everythink is ok, but when I open form for second time there are appears 2 charts,when third-3 and etc. How to avoid it? Thank you!
http://s019.radikal.ru/i642/1405/14/208c20ec7b88.png
http://s019.radikal.ru/i635/1405/ab/70cfdd555395.png
QCPBars *newbars=new QCPBars(ui->widget->xAxis , ui->widget->yAxis); xData<<xd; yd++; yData<<yd; newbars->setData(xData,yData); ui->widget->replot();