Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30596 bi-directional or multi-sync variation of Binding
  3. QTBUG-132546

Allow combining retroactive aliases with "required"

    XMLWordPrintable

Details

    Description

      For example:

      // DelegateWithAlias.qml
      MyDelegate {
          required alias string text
      }
      

      This would actually produce a property called "text" and would not require a value to be assigned, but rather a retroactive alias to be established on it. The following would fulfill such a thing:

      DelegateWithAlias {
          id: self
          alias text: self.objectName
      }
      

      However, manually fulfilling required aliases would be rare. The main application would be delegates for views. Views would automatically recognize required aliases the same way they recognize required properties, and establish two-way bindings into the model data. This way we'd be able to write model data from delegates.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes