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

Slider breaks bond with object properties when dynamically loaded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.15.2
    • Quick: Controls 2
    • None
    • All

      Steps to reproduce:

      • Load a Slider element with Loader and bind a QObject/QtObject property using Binding component
      • Bind Slider's value property to the bound object's value property

      Result:

      • Slider's value is changed to zero, then changed again to 1 or to the from property (whichever is lower), therefore breaking the bound. It seems like value is first bound, with from and to initially set to 0, resulting in value being changed to 0. Then from and to are bound, changing the value to 1 or from.

      Expected result:

      • Slider's value property should remain bound to the passed object's value property when value is within bounds from and to. In other words, the to and from properties should be bound first, and only then the value property should be correctly bound.

      Please see attachments for an example

        1. qtbug-89202.zip
          2 kB
        2. ConfigElement.qml
          0.4 kB
        3. ConfigObject.qml
          0.1 kB
        4. NumericalElement.qml
          1 kB
        5. main.qml
          0.5 kB
        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
            mmi_puya Puya Daravi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes