Solved QLineSeries undeclared identifier
-
Hello,
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!
-
@ivanicy
Show me what you tried? -
Hello, thank you for answer me.
This is that I am trying. This type of graphic:
http://doc.qt.io/qt-5/qtcharts-linechart-example.html
but Qt doesn't recognize me the QLineSeries
Thank you
-
in your .pro file add
QT += charts
and then rerun qmake
source: https://doc.qt.io/qt-5/qtcharts-index.html#getting-started -
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!
-
Hi,
Don't use the module wide include in production code. Include only what you use. That way you'll save on compile time.