QtCharts not useable in spite of the header include
-
wrote on 15 Jun 2016, 18:47 last edited by
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
-
wrote on 15 Jun 2016, 19:02 last edited by
Maybe you forgot to add
QT += charts
to your project file? -
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?
-
wrote on 15 Jun 2016, 19:13 last edited by
It works
I replace#include <QSeriesLine>
to
#include <QtCharts/QLineSeries>
-
@HenrikSt. said:
. I also include QT += charts in the .pro file.
nope, but i wonder if it accept it?
wrote on 15 Jun 2016, 19:14 last edited by A Former User@mrjj Oh, didn't read carefully enough...
-
@mrjj Oh, didn't read carefully enough...
wrote on 15 Jun 2016, 19:16 last edited by@Wieland
No problem :)
5/6