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

Regression: warning when Binding points to the property of a value type

    XMLWordPrintable

Details

    Description

      The following code works, but will print a warning with Qt 5.6:

      import QtQuick 2.3
      import QtQuick.Window 2.2
      
      Window {
          width: 800 * root.bar.x
          height: 400
          visible: true
      
          Binding {
              target: root
              property: "bar.x"
              value: 0.5
          }
      
          Item {
              id: root
      
              property rect bar: Qt.rect(0, 0, 0, 0)
          }
      }
      
      qrc:/main.qml:9:5: QML Binding: Property 'bar.x' does not exist on Item.
      

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes