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

Writing to read-only or accessing non-existent property in a value type could at least produce a warning

    XMLWordPrintable

Details

    Description

      For example:

      Item {
      property vector3d vec
      Component.onCompleted: vec.zz = 1
      }
      

      Since assigning does nothing, and reading from it always return undefined, it could probably be fine to throw a warning about assignment to a non-existent property.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes