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

QQuickRangeSlider doesn't update position of slider node

    XMLWordPrintable

Details

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

    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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: