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

[REG: 5.11 -> 5.12] QML ignores if id name is "row"

    XMLWordPrintable

Details

    Description

      If defines id name is "row" as following, it will ignore thus rendering incorrectly.

      import QtQuick 2.11
      import QtQuick.Window 2.11
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Row {
              id: row
              x: 10
              y: 80
              spacing: 5
      
              Repeater {
                  model: 4
                  Rectangle { color: "red"; width: row.x; height: row.x }
              }
          }
      }
      

      Qt 5.11 works expected, but 5.12 won't. Also if id name is different like "row2", it works as expected. Please check attached sample. It seems "row" is reserved word.

      Attachments

        Issue Links

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

          Activity

            People

              richard Richard Moe Gustavsen
              akizawa Akihito Izawa
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes