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

Qml property aliases cannot refer to properties inside a hierarchy with depth 2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.1
    • None
    • Linux/X11

    Description

      In the documentation  it's stated that:


      It cannot refer to properties inside a hierarchy with depth 3 or greater.

       

      However, aliases to properties that are up to two levels deep will work

      property alias color: rectangle.border.color
      
      Rectangle {
          id: rectangle
      }

       

      But this produces the error:

       

      Invalid alias target location: color 

       

       

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            friendnick Mykola Vankovych
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes