Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.7.0 RC
-
None
-
c4c803ce4403a6ee675ad96416f53a983397a6d0
Description
The property stepSize is improperly honoured in a slider that does not start from 0. This is trivially demonstrated by this example:
Slider { from: 1 to: 3 stepSize: 1 snapMode: Slider.SnapAlways onValueChanged: console.log(value) }
The slider should have 3 positions: 1, 2, 3. However, it snaps at 1, 1.66, 2.33 and 3. If the slider runs from 0 to 2, the step size is correct.
Attachments
Issue Links
- is duplicated by
-
QTBUG-56543 Slider doesn't respect the stepSize
- Closed
For Gerrit Dashboard: QTBUG-54140 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
162713,2 | Fix QQuickSliderPrivate::snapPosition() | 5.7 | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |