K
K
Kalombyr2021-05-21 11:29:41
QML
Kalombyr, 2021-05-21 11:29:41

Why is the chart updating slowly when changing the min max value of the axis?

Hello.
I use Qml 5.12
. I display a ChartView, one polyline LineSeries. Data from QAbstractTableModel via VXYModelMapper.
In general, almost everything is as in the examples.
For axes, ValueAxis is used with fixed min and max:

ValueAxis {
        id: xAxis
        min: 0
        max: 10
}


The problem is that when changing min max (for example, by 10, 20), the main thread freezes very significantly.
There are about 200 data in the model at a time.

If I change the X values ​​in the model itself, then the graph itself is redrawn quickly.

Tell me, please, what am I doing wrong and how then to "scroll" the chart correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question