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

QQuickRangeSlider doesn't update position of slider node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15
    • Quick: Controls 2
    • None
    • All

      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.
       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            areqhir Andreas Patzelt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes