I saw in another thread where you say to keep a pointer to the title but do not know how to do that.
I am initially setting the title by
ui->customPlot->plotLayout()->addElement(0,0, new QCPPlotTitle(customPlot,lstr));
I want to update the curves on my graph with a new value entered into a text box and want that value to be in the title when it recalcs after clicking a push button.
Tried just restating the above and after replot gives me a new title above the old.
I am fairly new to this and my c++ skills are limited. So any help will be appreciated.