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

QQuickRangeSlider doesn't update position of slider node

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: 5.15
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Platform/s:
      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

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes