Hi Manu,
in the sample code for adding items (http://www.qcustomplot.com/index.php/tutorials/items ), the code snippet needs an update for the version QCustomPlot2.
Lines 3 and 13 with customPlot->addItem() are superfluous, you integrated the functionality.
Cheers,
Tamas