Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.5
-
0a0ba8575 (dev), 5d3131f91 (6.10), ad62a0e1c (6.9), 952ec1161 (tqtc/lts-6.8), b19fdf533 (tqtc/lts-6.5)
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
For Gerrit Dashboard: QTBUG-136770 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
650105,2 | Clear polar paths when the series is empty | dev | qt/qtcharts | Status: MERGED | +2 | 0 |
650668,2 | Clear polar paths when the series is empty | 6.10 | qt/qtcharts | Status: MERGED | +2 | 0 |
651049,2 | Clear polar paths when the series is empty | 6.9 | qt/qtcharts | Status: MERGED | +2 | 0 |
651143,2 | Clear polar paths when the series is empty | tqtc/lts-6.8 | qt/tqtc-qtcharts | Status: MERGED | +2 | 0 |
651185,2 | Clear polar paths when the series is empty | tqtc/lts-6.5 | qt/tqtc-qtcharts | Status: MERGED | +2 | 0 |