Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19186 Improved property declaration support in QML
  3. QTBUG-15139

Property alias binding has to be qualified even when strictly not necessary

    XMLWordPrintable

Details

    Description

      When creating an alias for a property in the own object I would not expect to have
      to qualify it with the object id.

      import QtQuick 1.0
      
      Rectangle {
         id: rect
         width: 100; height: 100; color: "blue"
         property alias foo: rect.color  // works
         property alias bar: color       // should work too, but doesn't
      }
      

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes