Use this after you allocate textLabel :
plot->addItem(textLabel);
From the documentation :
bool QCustomPlot::addItem ( QCPAbstractItem * item)
Adds the specified item to the plot. QCustomPlot takes ownership of the item.
Returns true on success, i.e. when item wasn't already in the plot and the parent plot of item is this QCustomPlot.