Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28468

PropertyChanges in ID form leads to M16

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 9.0.0-rc1
    • Quick / QML Support
    • None

    Description

      Using the snippet from the Documentation

      Text {
          id: myText
          width: 50
          wrapMode: Text.WordWrap
          text: "a text string that is longer than 50 pixels"
              
          states: State {
              name: "widerText"
              PropertyChanges { myText.width: undefined }
          }
      }
      

      leads to "Invalid property name myText (M16)". The error goes away if you use the old target based declaration.

      As the documentation encourages to use the ID form, that should work without any warnings.

       

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            cajus Cajus Pollmeier
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: