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

Property alias does not work with grouped properties

XMLWordPrintable

    • bc49400b7df51312e918097de429826484fa5c61

      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.

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes