C++ QCPAxisTickerTime错误
我正在使用QtcustomPlot,但当我试图通过类QCPAxisTickerTime将Y轴更改为Datetime轴时,我得到了这个错误。我包括了QSharedPointer库。大家都知道吗?请帮帮我 我正在使用Qt5.8.0和QCustomPlot版本2.0.0测试版C++ QCPAxisTickerTime错误,c++,qt,qcustomplot,C++,Qt,Qcustomplot,我正在使用QtcustomPlot,但当我试图通过类QCPAxisTickerTime将Y轴更改为Datetime轴时,我得到了这个错误。我包括了QSharedPointer库。大家都知道吗?请帮帮我 我正在使用Qt5.8.0和QCustomPlot版本2.0.0测试版 error: ‘QCPAxisTickerTime’ was not declared in this scope QSharedPointer<QCPAxisTickerTime> timeTicker(n
error: ‘QCPAxisTickerTime’ was not declared in this scope
QSharedPointer<QCPAxisTickerTime> timeTicker(new QCPAxisTickerTime);
错误:未在此作用域中声明:“QCPAxisTickerTime”
QSharedPointer timeTicker(新的QCPAxisTickerTime);
非常感谢。QSharedPointer timeTicker(新QCPAxisTickerTime);
QSharedPointer<QCPAxisTickerTime> timeTicker(new QCPAxisTickerTime);
timeTicker->setTimeFormat("%h:%m:%s");
trend->CustomPlot->xAxis->setTicker(timeTicker);
QSharedPointer<QCPAxisTickerTime> timeTicker2(new QCPAxisTickerTime);
timeTicker2->setTimeFormat("%h:%m:%s");
trend->CustomPlot->yAxis->setTicker(timeTicker2);
timeTicker->setTimeFormat(“%h:%m:%s”);
趋势->自定义绘图->xAxis->设置计时器(计时器);
QSharedPointer timeTicker2(新的QCPAxisTickerTime);
timeTicker2->setTimeFormat(“%h:%m:%s”);
趋势->自定义绘图->yAxis->设置计时器(timeTicker2);
这对我很有用。你也应该分享一些代码。我在使用QCustomPlot v1.3.2时遇到了同样的问题,一旦我切换到2.0.0 beta版,它就工作得很好,以确保你有正确的版本:打开QCustomPlot.cpp并查找
QCPAxisTickerTime