QtGraphs vs QtCharts vs QtDataVisualization
-
Hey.
I'm getting confused between QtGraphs, QtCharts and QtDataVisualization. These libs seem to have quite some overlap (some classes seem fully duplicated), but I was not able to find clear information about how we should use them.- What is the Qt strategy regarding these 3 libs for the future ?
- Is QtGraphs going to merge QtDataVisualization and QtCharts together at the end ?
- Is QtGraphs going to be fully available for QtWidgets as well ?
- For 2D graphs with QtGraphs in Qt 6.7, I could not find the class that actually shows a graph in the C++ API, i.e. the equivalent to GraphsView in QML.
- Is it planned to provide higher-level function to manipulate the view in QtGraphs ? (to avoid the 300+ lines required to handle the view efficiently with the mouse in QtCharts, e.g. zoom under the mouse cursor, zoom in X or Y only, sync axis together, etc)
Thanks !
-
Hey.
I'm getting confused between QtGraphs, QtCharts and QtDataVisualization. These libs seem to have quite some overlap (some classes seem fully duplicated), but I was not able to find clear information about how we should use them.- What is the Qt strategy regarding these 3 libs for the future ?
- Is QtGraphs going to merge QtDataVisualization and QtCharts together at the end ?
- Is QtGraphs going to be fully available for QtWidgets as well ?
- For 2D graphs with QtGraphs in Qt 6.7, I could not find the class that actually shows a graph in the C++ API, i.e. the equivalent to GraphsView in QML.
- Is it planned to provide higher-level function to manipulate the view in QtGraphs ? (to avoid the 300+ lines required to handle the view efficiently with the mouse in QtCharts, e.g. zoom under the mouse cursor, zoom in X or Y only, sync axis together, etc)
Thanks !
@habersaa According to Qt Graphs docs, they are still in technology preview. Which is probably why you don't get documentation in released versions.
I believe they are meant to replace Qt Charts. I would not hold my breath for a pure QWidget-based implementation, besides integrating them using QQuickWidget of course.