Important: Please read the Qt Code of Conduct -

Does anyone know about QCPAxisTickerTime???

  • Hi,

    I'm doing an apllication by Qt and I just use QCustomPlot to make Plot. But when I tried to change the Y axis in the chart to the Datetime axis by QCPAxisTickerTime, I got this Error:

    error: ‘QCPAxisTickerTime’ was not declared in this scope
    QSharedPointer<QCPAxisTickerTime> timeTicker(new QCPAxisTickerTime).

    I included the QSharedPointer library.
    I'm using Qt5.8.0 and QCustomPlot version 2.0.0 beta.
    I'm doing student thesis in the University. Please help me.
    Sorry for bad English, I'm from Vietnam.
    Thank you so much.


  • @Jewel-Halm
    it seems you don't include the header file or QCPAxisTickerTime is declared in another scope.

    but I read the source of qcustomplot.h briefly, it does not declare QCPAxisTickerTime in any namespace or class, so do you include the header file?

    BTW, from the official download page , it seems that QCustomPlot does not support Qt5.8

  • @Flotisable Thank you so much! I'm doing it. :)

Log in to reply