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

QML Binding type does not work with lists of a class type

XMLWordPrintable

    • Linux/X11

      For some reason the Binding qml type does not properly function when it is changing a binding of a QList<Bar> type (even when the metatype is registered). I've created a small project to demonstrate this issue. 

      In the project, you can see that when you click the button, it properly goes through the recalcuating portion of the Binding type, but does not over change the value on the target like it is supposed to. In the code there are commented out sections, you can see that a normal binding does work (and properly puts out the changed signal for foo2's barList property, but when using any of the different forms of "Binding", this does not happen (meaning it never changes the property on foo2)

      Qt 6.7 or later has the correct behavior.

        1. bindingBug.zip
          3 kB
          Shinichi Okada
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            oulu_hillbilly Sami Varanka
            shin1_okada Shinichi Okada (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes