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

Switch control: Cannot override behavior toggling on the control relative to a given indicator position

XMLWordPrintable

      Currently, a draggable Switch control (checkable: false) will always toggle on (checked = true) when the indicator is dragged and released at a position greater than 0.5. When attempting to override the behavior so that the control is only toggled on when the dragged indicator is released at a different position threshold (e.g. onReleased: checked = position > 0.75), leads to the control ignoring the desired behavior and toggling on (e.g. 0.5 < position < 0.75).

      Steps to reproduce:

      1. Run the attached reproducer
      2. Drag switch indicator to position greater than 0.5 but less than 0.75

      Expected behavior: Switch is not toggled on when indicator position > 0.5 but < 0.75

      Observed behavior: Switch is toggled on when indicator position > 0.5 but < 0.75

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

            hatemelkharashy Hatem ElKharashy
            lysandra.sola Lysandra Sola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes