Line chart in QT 5.6
-
It find Line chart with Qt Chart in Qt example.
You will select an example with mode selector on the left side of Qt Creator.
And When you search at "Callout", you can use the sample of Line chart.The same contents can be seen on the Web!
https://doc.qt.io/qt-5.11/qtcharts-callout-example.html -
Can you upgrade to a newer Qt Version? E.g. 5.9.x or 5.12? I'm not sure if 5.6 already contained the QtCharts module (which is GPL licenced, by the way). Edit: 5.6 already contained QtCharts.
Is it possible to integrate QChart and If possible then how can i implement it?
Or how can i use canvas for the same?Of course, always :)
There are other plotting libraries that work well with Qt, e.g. qcustomplot. You can just google them.
-
@mrjj Interesting. Reading http://blog.qt.io/blog/2016/01/18/qt-charts-2-1-0-release I thought that would be the case.
So, my recommendation to upgrade to 5.9.x or 5.12 stays :)
-
-
@KazuoAsano My problem is I cannot upgrade to my QT version.My project requirement is QT 5.6
-
@drd1988on
Hi
Its a module so you can build it and att to your Qt installation.
code from here
git://code.qt.io/qt/qtcharts.gitYou can see build instruction here
https://github.com/qt/qtcharts -
@drd1988on ,
OK, I think that It may be hard to build Qt Chart at Qt5.6.My others solution, I will provide Qwt(Qt Widgets for Technical Applications) library(no official library on Qt).
Qwt contain an easy 2D plots framework.
ex : line plot
http://qwt.sourceforge.net/curvescreenshots.htmlQwt library also need building, but it may be easier than Qt Chart build at Qt5.6.
I'm also using from Qt4.8. and it's useful library for graph creation. -
Hi,
The usual way:
pushd build_qtchart /path/to/Qt5.6/bin/qmake /path/to/qtcharts make make install popd