Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.7.0
-
None
-
Windows 10
Description
I've built a sample QtQuick 2 application which plots a line series dynamically using QtCharts.
The data for the Line series comes from C++ using a model derived from QAbstractTableModel class and exposed by a QVXYModelMapper.
The problem is that during resizing the axis, some artifacts are produced in the plotted series. Specifically, a straight line appears which goes from the previous plotted point to the current plotting position.
This issue only happens for the QAbstractTableModel-based series. You can see an example of this happening several times because of resize in the following screenshot:
The buggy series is the green one. Note that the data for blue series is generated completely in QML and it doesn't have this issue.
The source code of reproducing this problem is available here:
https://github.com/nickaein/qtcharts_dynamic_series
I've also attached this source code in this bug report.