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

Loosely bound mode for Binding that allows multiple properties to be bound

    XMLWordPrintable

Details

    Description

      With generalized grouped properties, you can do the following with Binding now:

      Binding {
          testItem.width: 100
          testItem.height: 200
      }
      

      However, if the target is not statically known, you can't do that. We should allow a loosely bound mode like we have for Connections:

      Binding {
          target: some.expression
          property int aPropertyOnTarget: 25
          property string someOtherPropertyOnTarget: "foo"
      }
      

      The original suggestion was as follows, but that requires custom parsers and is not type safe:

      Bindings {
          target: testItem
          ignoreUnknownProperties: false
          width: 100
          height: 200
      }
      

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            t.artikov Timur Artikov
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes