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

qmllint: PropertyChanges targets not checked

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.11
    • 6.9.3, 6.10.0
    • QML: Tooling

      The new PropertyChanges syntax should also allow typechecking the changes wil qmllint.

      However, this does not seem to be the case:

      [1] invalid property on known item type: not detected by qmllint, prevents construction on runtime
      [2] invalid id: not detected by qmllint, runtime error

      import QtQuick
      
      Window {  
        id: root
      
        width: 640
        height: 480
        visible: true
      
        Rectangle {
          id: foo
          width: 100
          height: 100
          color: "red"
      
          states: [
            State {
              name: "bar"
              PropertyChanges {
                foo.x: 42
                // foo.bar: 42    // [1] runtime error preventing construction on startup
                bogusid.bar: 42   // [2] runtime error when state is applied
              }
            }
          ]
        }
      }
      

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

            qtqmlteam Qt Qml Team User
            njeisecke_qtc Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes