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

PropertyChanges in ID form leads to M16

    XMLWordPrintable

Details

    • 012f984c2 (11.0), fd2d1ceea (11.0)

    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

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

        Activity

          People

            semih.yavuz Semih Yavuz
            cajus Cajus Pollmeier
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes