轴为专题

QCustomPlot-绘制X轴为日期的折线图

主要代码如下: void Widget::InitQLineXDateAddData(){customPlot = new QCustomPlot(this);// 创建日期时间类型的刻度生成器QSharedPointer<QCPAxisTickerDateTime> dateTimeTicker(new QCPAxisTickerDateTime);dateTimeTicker->s