QVector<float> x(5000), y(5000);
ui->plot->addGraph(0);
ui->plot->graph(0)->setData(x, y);
what is wrong here?
Comparing with the example:
QVector<double> x(101), y(101);
customPlot->addGraph();
customPlot->graph(0)->setData(x, y);