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

Strange binding behaviour in QtQuick

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.1
    • None
    • identically happens on Windows and MacOS
    • macOS

    Description

      I encountered a strange binding behaviour in QtQuick, which might well be related to me misunderstanding certain concepts,
      although I suspect it to be a bug.

      I attached a small QML example below; it contains 2 slider and 2 switch controls, which are mutually bound to each other.
      In other words, if you move one slider, the other follows; if you toggle one switch, the other follows and vice versa.
      This works as intended for the sliders, but fails for the switches. If you toggle one switch, the other will follow,
      but if you then toggle the other switch, the connection is broken. It does not matter, which switch you start with;
      the connection is kept until the other switch is touched - then the whole binding between the switches breaks down.
      Is this a bug, or am I seriously missing something? A possible culprit could be the fact, that the switch is animated,
      while the slider is not.

      Attachments

        1. QML_BINDING_TEST.qml
          0.8 kB
          Wolfgang Schneider
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert Alan Alpert
            woolfman007 Wolfgang Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes