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

Allow "lazy" aliases to properties of objects created only later

    XMLWordPrintable

Details

    Description

      Property bindings are soft, in the sense that they are easily broken
      when the property is assigned a different value.

      Property aliases on the other hand are hard, and will not be broken
      by subsequent assignments. However an alias can only be defined if
      the target object exists at the time the owner of the alias is
      constructed.

      A Binding element can be used to create a hard binding between from
      one property to another. However, for the binding to be two-way the
      same way that aliases are, two Binding elements needs to be defined, one
      binding the two properties in one direction and the other in the other
      direction. This however is impractical when creating generic reusable
      component, as the generic component won't know about its parent's property.

      Thus, support is needed for creating Binding objects that automatically
      create a two-way binding between two properties.

      Attachments

        Issue Links

          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
              mathiasm Mathias Malmqvist
              Votes:
              36 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes