Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-55272

Resizing axis causes artifacts in a LineSeries binded to QAbstractTableMode

    XMLWordPrintable

Details

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            e0348803 Miikka Heikkinen
            nickaein Isaac Nickaein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes