Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.15
-
None
Description
Hello,
when I try to change the from or to value of an existing RangeSlider in qml the positions of the slider nodes aren't updated.
The problem can be found in the implementation of qquickrangeslider.cpp. There the class methods void QQuickRangeSlider::setFrom(qreal from) and void QQuickRangeSlider::setTo(qreal from) miss the calls to update the position. The position is only updated if the actual value of the corresponding node changes which is not the case when only the boundaries (from, to) change.
Just have a look at the implementation of qquickslider.cpp where both methods
(void QQuickSlider::setFrom(qreal from) and void QQuickSlider::setTo(qreal from)) to change the boundaries call d->updatePosition(). This behaviour works like expected.
Attachments
Issue Links
- duplicates
-
QTBUG-98482 RangeSlider does not update position/visualPosition based on from/to changes
- Closed