QtCharts not useable in spite of the header include
Solved
General and Desktop
-
Hi.
Ich habe Qt Charts installiert. habe sogar #include <QLineSeries> geschrieben. Innerhalb meiner Funktion void Mainwindow::diagram () {
QLineSeries *series = new QLineSeries();
}
kennt er QLineSeries aber nicht.. Warum?I have installed Qt Charts. I included #include <QLineSeries> which is auto detecting by Qt Creator. I also include QT += charts in the .pro file.
Now I have the function
void MainWindow::Diagramm() { QLineSeries *series = new QLineSeries(); }
Here he don't know about QLineSeries. Why?
Danke,
Thank you,Henrik
-
Maybe you forgot to add
QT += charts
to your project file? -
@HenrikSt. said:
. I also include QT += charts in the .pro file.
nope, but i wonder if it accept it?
-
It works
I replace#include <QSeriesLine>
to
#include <QtCharts/QLineSeries>
-
@Wieland
No problem :)