Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QLineSeries undeclared identifier
I have the 5.7.0 Qt version and I am trying to do a graphic with QLineSeries. I had installed the QCharts extension and included the header <QLineSeries> but Qt doesn't recognize it. Someone knows what is happening?
Thank you very much!
Ratzz last edited by
Show me what you tried?
Hello, thank you for answer me.
This is that I am trying. This type of graphic:
but Qt doesn't recognize me the QLineSeries
VRonin last edited by
in your .pro file add
QT += chartsand then rerun qmake
Thank you very much.
I have this line too, but the links you send me give me information to fix my error. I have to include <QtCharts> and it resolves my problem.
Thank you again!
Don't use the module wide include in production code. Include only what you use. That way you'll save on compile time.