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

alias of aliased property incorrectly detects loop when aliasing across objects

    XMLWordPrintable

Details

    Description

      alias a7i fails with

      aliasError.qml:9:9: Circular alias reference detected

      with the following code:
      {{
      import QtQuick

      Item {
      id: root
      property int p1: 1
      QtObject

      { id: obj1 property alias a3i: root.p1 property alias a7i: obj2.a8i // loop error, even if no loop }

      QtObject

      { id: obj2 property alias a8i: obj1.a3i }

      Rectangle {
      Text

      { id:t1 text: obj2.a8i // works }

      Text

      { text: obj1.a7i // fails anchors.top: t1.bottom }

      }
      }
      }}

      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
            fawzi Fawzi Mohamed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes