QCustomPlot Discussion and Comments

How to plot closed lines with qtcustomplot?Return to overview

I have just read the documentation about it but i don't know how to create a closed loop.
i have tried with:

QCPCurve *newCurve = new QCPCurve(ui->Plot->xAxis, ui->Plot->yAxis);


newCurve->setName("geometrĂ­a");
newCurve->setData(X,Y);

But doesn't appear a closed loop

You should use QCPGraph instead of QCPCurve
http://www.qcustomplot.com/documentation/classQCPGraph.html