Qt Graphs lacking functionalities - Axes range
-
@cristian-adam this is for the old module Qt Charts, not Qt Graphs.
@GrecKo said in Qt Graphs lacking functionalities - Axes range:
@cristian-adam this is for the old module Qt Charts, not Qt Graphs.
Sorry. My bad. The Qt Graphs examples at https://code.qt.io/cgit/qt/qtgraphs.git/tree/examples they all have the
qmlpart. -
I had a play with the examples installed in Qt\Examples\Qt-6.10.0\graphs\2d with Qt 6.10 and was a bit underwhelmed.
quickwidgetgraphs doesn't work, nothing happens when you click on the buttons:

hellographs is QML in a QQuickView .
cockpit isn't relevant for me.
Is QtGraphs going to have a C++/widget API similar to QCharts (even if it is just a wrapper over the QML)? Or are people expected to throw away all the QtCharts/widget code and rewrite it all from scratch in QtGraphs/QML?
-
I had a play with the examples installed in Qt\Examples\Qt-6.10.0\graphs\2d with Qt 6.10 and was a bit underwhelmed.
quickwidgetgraphs doesn't work, nothing happens when you click on the buttons:

hellographs is QML in a QQuickView .
cockpit isn't relevant for me.
Is QtGraphs going to have a C++/widget API similar to QCharts (even if it is just a wrapper over the QML)? Or are people expected to throw away all the QtCharts/widget code and rewrite it all from scratch in QtGraphs/QML?
@AndyBrice said in Qt Graphs lacking functionalities - Axes range:
quickwidgetgraphs doesn't work, nothing happens when you click on the buttons:
The *.pro file is broken in Qt 6.10.0 (it's fixed for the next releases). Load the CMakeLists.txt and it will work.
I also suggest downloading the latest version of the example (it's not released yet so get it via git): https://github.com/qt/qtgraphs/tree/dev/examples/graphs/2d/quickwidgetgraphs This shows you how to use Qt Graphs without writing any QML code.
-
I managed to get https://github.com/qt/qtgraphs/tree/dev/examples/graphs/2d/quickwidgetgraphs . It seems somewhat more convoluted than the QtCharts equivalent.
Is there going to be a simple migration path from QtCharts to QtGraphs?
How long is QtCharts going to be supported?
-
I managed to get https://github.com/qt/qtgraphs/tree/dev/examples/graphs/2d/quickwidgetgraphs . It seems somewhat more convoluted than the QtCharts equivalent.
Is there going to be a simple migration path from QtCharts to QtGraphs?
How long is QtCharts going to be supported?
@AndyBrice said in Qt Graphs lacking functionalities - Axes range:
Is there going to be a simple migration path from QtCharts to QtGraphs?
I ported a simple app (where the data points were written in C++ but displayed in QML/Qt Quick) from Qt Charts to Qt Graphs in Qt 6.10.0. There were some differences in how we set up
ChartsViewvs.GraphsView, but I did not have to make any changes to my C++ code (QLineSeries).Note: There are differences in the C++ API too, but I hadn't used the parts that changed. Depending on the complexity of your existing code, migration could be simple.
I managed to get https://github.com/qt/qtgraphs/tree/dev/examples/graphs/2d/quickwidgetgraphs . It seems somewhat more convoluted than the QtCharts equivalent.
Can you please describe which part(s) you found more convoluted, and how it could be simplified?
How long is QtCharts going to be supported?
Qt Charts has been deprecated, meaning that it will no longer receive new features or minor bugfixes. However, it should continue to be available for the lifetime of Qt 6 (removed from Qt 7).
-
@AndyBrice said in Qt Graphs lacking functionalities - Axes range:
Is there going to be a simple migration path from QtCharts to QtGraphs?
I ported a simple app (where the data points were written in C++ but displayed in QML/Qt Quick) from Qt Charts to Qt Graphs in Qt 6.10.0. There were some differences in how we set up
ChartsViewvs.GraphsView, but I did not have to make any changes to my C++ code (QLineSeries).Note: There are differences in the C++ API too, but I hadn't used the parts that changed. Depending on the complexity of your existing code, migration could be simple.
I managed to get https://github.com/qt/qtgraphs/tree/dev/examples/graphs/2d/quickwidgetgraphs . It seems somewhat more convoluted than the QtCharts equivalent.
Can you please describe which part(s) you found more convoluted, and how it could be simplified?
How long is QtCharts going to be supported?
Qt Charts has been deprecated, meaning that it will no longer receive new features or minor bugfixes. However, it should continue to be available for the lifetime of Qt 6 (removed from Qt 7).
@JKSH said in Qt Graphs lacking functionalities - Axes range:
Depending on the complexity of your existing code, migration could be simple.
Ok, thanks.
Can you please describe which part(s) you found more convoluted, and how it could be simplified?
It seems to have more classes involved. But it is a while since I looked at QtCharts.
Qt Charts has been deprecated, meaning that it will no longer receive new features or minor bugfixes. However, it should continue to be available for the lifetime of Qt 6 (removed from Qt 7).
Hopefully, it will still be supported in a Qt6Compat module in Qt 7.
-
FYI: https://bugreports.qt.io/browse/QTBUG-142046
Thanks @mklisiewicz for bringing this into our attention. -
Hi, I just installed QT Creator for testing Charts and Graphs,
and it seems that Graphs has disappeared, as well as the examples !?
Do I have to install Graphs manually ? Or do I miss something ? I reinstalled Qt to be sure but I could see no specific option
I downloaded/installed an example manually but no luck (see bug report below)Charts: I tested examples ChartsGallery and ZoomLineChart:
both work fine, but :- Charts depreciated according to docs, so it will probably disappear soon
- chart is not visible in design mode
(Are there any 3rd party extensions for plotting data ?)
Thanks in advance for any suggestions.
PS bug report
(Product: Qt Creator 18.0.2; Based on: Qt 6.10.1 (MSVC 2022, x86_64)
Built on: Jan 23 2026 00:28:19; From revision: 81c92cce94, on Windows 10)
example QuickWidgetGraphs: not present under examples
(https://doc.qt.io/qt-6/qtgraphs-2d-quickwidgetgraphs-example.html)I downloaded QuickWidgetGraphs from
https://code.qt.io/cgit/qt/qtgraphs.git/tree/examples/graphs/2d/quickwidgetgraphs?h=6.10...but when opening the project file on my local copy, I get configuration errors:
[...]
[cmake] -- Could NOT find Qt6Graphs (missing: Qt6Graphs_DIR)
[...]
[cmake] Failed to find required Qt component "Graphs".
[cmake]
[cmake] Expected Config file at
[cmake] "C:/Qt/6.10.2/mingw_64/lib/cmake/Qt6Graphs/Qt6GraphsConfig.cmake" does NOT exist
[cmake]...and indeed the following directory doesn't exist on my PC
C:/Qt/6.10.2/mingw_64/lib/cmake/Qt6Graphs -
Hi, I just installed QT Creator for testing Charts and Graphs,
and it seems that Graphs has disappeared, as well as the examples !?
Do I have to install Graphs manually ? Or do I miss something ? I reinstalled Qt to be sure but I could see no specific option
I downloaded/installed an example manually but no luck (see bug report below)Charts: I tested examples ChartsGallery and ZoomLineChart:
both work fine, but :- Charts depreciated according to docs, so it will probably disappear soon
- chart is not visible in design mode
(Are there any 3rd party extensions for plotting data ?)
Thanks in advance for any suggestions.
PS bug report
(Product: Qt Creator 18.0.2; Based on: Qt 6.10.1 (MSVC 2022, x86_64)
Built on: Jan 23 2026 00:28:19; From revision: 81c92cce94, on Windows 10)
example QuickWidgetGraphs: not present under examples
(https://doc.qt.io/qt-6/qtgraphs-2d-quickwidgetgraphs-example.html)I downloaded QuickWidgetGraphs from
https://code.qt.io/cgit/qt/qtgraphs.git/tree/examples/graphs/2d/quickwidgetgraphs?h=6.10...but when opening the project file on my local copy, I get configuration errors:
[...]
[cmake] -- Could NOT find Qt6Graphs (missing: Qt6Graphs_DIR)
[...]
[cmake] Failed to find required Qt component "Graphs".
[cmake]
[cmake] Expected Config file at
[cmake] "C:/Qt/6.10.2/mingw_64/lib/cmake/Qt6Graphs/Qt6GraphsConfig.cmake" does NOT exist
[cmake]...and indeed the following directory doesn't exist on my PC
C:/Qt/6.10.2/mingw_64/lib/cmake/Qt6Graphs -
@bzeimetz it should be under additional libraries:

please note the licence requirements, commercial or GPL