Unknown type name 'Q3DScatter'
-
I want to create app solving Lorenz Attractor.
In left window (QGraphicsView) i would like to have 3DScatter plot.
I am trying to utilize example https://doc.qt.io/qt-5.11/qtdatavisualization-scatter-example.html, but I fail on first step:
Q3DScatter *graph = new Q3DScatter();
Editor says Unknown type name 'Q3DScatter'.
I have tried
#include <Q3DScatter>
and
#include <QtDataVisualization/Q3DScatter>
but nothing helped.
I can compile and run example https://doc.qt.io/qt-5.11/qtdatavisualization-scatter-example.html without problems.
Can someone give me a hint? Thank you in advance.
-
I forget to note that I am using MacOS Mojave 10.14 and I have Qt 5.9 (I need this version because of compatibility with school server)
-
@zbysekvoda
hi
You need to add
QT += datavisualization
to .pro and rerun qmake
https://doc.qt.io/qt-5.11/qtdatavisualization-index.html -
@mrjj it seems it helped. Thank you :)