Hard to find some docs for QtGraphs in C++
-
ui->quickWidget->setInitialProperties({ {"seriesList", seriesList}, {"axisX", QVariant::fromValue(axisX)}, {"axisY", QVariant::fromValue(axisY)} });Prefer C++ to QML (no intrests in QML now).
But I need some charts, QtCharts is deprecated, so I tried QtGraphs.
For the code above, I can't find the keys (like seriesList, axisX, axisY) that are available in the doc easily, any way? -
ui->quickWidget->setInitialProperties({ {"seriesList", seriesList}, {"axisX", QVariant::fromValue(axisX)}, {"axisY", QVariant::fromValue(axisY)} });Prefer C++ to QML (no intrests in QML now).
But I need some charts, QtCharts is deprecated, so I tried QtGraphs.
For the code above, I can't find the keys (like seriesList, axisX, axisY) that are available in the doc easily, any way?@jronald For example https://doc.qt.io/qt-6/qml-qtdatavisualization-scatter3d.html
You can search in Qt documentation. -
J jronald has marked this topic as solved
-
ui->quickWidget->setInitialProperties({ {"seriesList", seriesList}, {"axisX", QVariant::fromValue(axisX)}, {"axisY", QVariant::fromValue(axisY)} });Prefer C++ to QML (no intrests in QML now).
But I need some charts, QtCharts is deprecated, so I tried QtGraphs.
For the code above, I can't find the keys (like seriesList, axisX, axisY) that are available in the doc easily, any way?@jronald said in Hard to find some docs for QtGraphs in C++:
For the code above, I can't find the keys (like seriesList, axisX, axisY)
Those look like properties from
GraphsView: https://doc.qt.io/qt-6/qml-qtgraphs-graphsview.html