Before using the 1.3 version of QCustomPlot, after the replaced version 2.0 found that many functions are removed before use setTickLabelType () This function is to set the x-axis shows the date, nor can, and finally found in the new version It is something like this:
QSharedPointer <QCPAxisTickerDateTime> dateTick ( new QCPAxisTickerDateTime); dateTick->setDateTimeFormat("MM-dd"); ui->customplot->xAxis->setTicker(dateTick);