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

QLineSeries.clear() does not remove all lines from the plot in that series

    XMLWordPrintable

Details

    Description

      The QLineSeries.clear() method appears to correctly delete points in a QLineSeries, but only gets rid of some lines made in the plot from those points, not all of them.

      Steps to Reproduce:

      I've attached a script where a simple LineSeries plot is made on 2 ValueAxis objects.  There is a button attached to a slot that will clear the points in the QLineSeries object.  After this button is pressed, the points on the QLineSeries are removed, but there is still a line that exists on the plot despite no points existing.  Trying to call QPolarChart.update() or the QChartView.repaint() doesn't seem to have any effect.

      Expected Results:

      All points and lines should be removed.

      Actual Results:

      There are some artifacts of the previous lines that remain even after the points are removed.  See attached picture.

      Extra Information:

      We've tested this on both Mac and Windows and seen the same results.

      Attachments

        1. qlineseries_clear_bug-1.py
          3 kB
          Rich Wenner
        2. remaining_lines.png
          234 kB
          Rich Wenner
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            e0348803 Miikka Heikkinen
            rich_schrodinger Rich Wenner
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes