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

Property alias does not work with grouped properties

    XMLWordPrintable

    Details

    • Commits:
      bc49400b7df51312e918097de429826484fa5c61

      Description

      This is basically what was described in https://bugreports.qt.io/browse/QTBUG-14254 , which was closed, but still valid in 5.9.

       

      1)

       

      Rectangle {
         property alias borderColor: border.color
      }
      

       

      gives:

      Invalid alias reference. Unable to find id "border"

       

      2)

       

      Rectangle {
         id: root
         property alias borderColor:  root.border.color
      }
      

       

      or

       

      Item {
         property alias borderColor:  rect.border.color
         Rectangle {
             id: rect
          }
      }
      

       

      gives:

      Invalid alias target location: color

       

       Any reason why this is not supported or should this be considered a bug? If there is a good reason, it should be documented.

       

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-65011
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              shausman Simon Hausmann
              Reporter:
              andras@kdab.com Andras Mantia
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes