QCustomPlot under setTickLabelType () function has been removed in the new version of how to solve

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);

Guess you like

Origin www.cnblogs.com/ruandahua/p/12169890.html