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

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

    XMLWordPrintable

Details

    • Linux/X11

    Description

      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.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            shin1_okada Shinichi Okada (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes