Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0, 6.8.2
-
-
61050349b (dev), 6125672c8 (6.10), 7f85ccb32 (6.9), c860ea35d (tqtc/lts-6.8)
Description
When setting the step size to 0.1 and moving the slider 3 times, a floating-point precision error is encountered.
To reproduce the issue:
- Run the attached example project.
- Click on the right button to increase the value 3 times, then click 3 times on the left button to decrease the value 3 times.
A floating-point precision error is observed, and a 4th click is needed to decrease the value to 0.
Attachments
For Gerrit Dashboard: QTBUG-134635 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
646787,8 | QQuickSlider: Normalize near-zero values when setting slider value | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
650958,2 | QQuickSlider: Normalize near-zero values when setting slider value | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
651373,2 | QQuickSlider: Normalize near-zero values when setting slider value | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
651545,2 | QQuickSlider: Normalize near-zero values when setting slider value | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |