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

QML property assignment order inconsistencies

    XMLWordPrintable

Details

    Description

      The order of property assignments depends on whether the assignment is a simple value or a binding.

      In the former case, the value is assigned synchronously during the component's creation, while in the latter case the assignment happens at component finalization time, when all bindings that have been collected are evaluated.

      For a set of 3 sibling Rectangle items, this means the QQuickRectangle::setColor() call order may be 1,2,3, or 3,2,1 – depending on whether simple values or bindings are used.

      The latter reverse order due to the way we populate and iterate bindings as described in QTBUG-98789 

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              vestbo Tor Arne Vestbø
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes