PDA

View Full Version : qt Data Visualization or Qt Charts to display a 2D line-chart ?



mts
3rd March 2015, 10:00
Hi guys,

I'm looking for a 2D line-chart to plot realtime-data from external devices.
I saw there are two components from QT:
1) Qt Data Visualization
2) Qt Charts

At first glance Qt Data Visualization seems to be the right choice as it is completely opengl based and has great performance.
Unfortunately I don't see any 2D examples. Is is possible to plot a 2D chart with Qt Data Visualization at all?

On the other hand there is qt charts. I could use a qlineseries (http://doc.qt.io/QtCharts/qlineseries.html) and I have exactly what I'm looking for.
But, I don't see any information about performance. I have to plot thousands of lines per second.

My requirements:
- high performance
- display multiple axis (e.g. 4 y-axis, 1 x-axis)
- display a legend
- customizable (e.g. scroll back and forward / get values under mouse to display selected values / ...)

CU
mts


EDIT:
Some additional infos:
1) I'm need to use the chart in a qml-environment
2) qwt is also an option, but I have no idea if I can use it in qml. Does it use opengl? What about performance?