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

Unexpected behavior when shadowing the default property

XMLWordPrintable

      please see the attached demo.

      property string data
      

      will give a runtime error:

      qrc:/PropertyDataTest/Main.qml:11:5: Cannot assign to property of unknown type "QString".
      

      if "data" is invalid as a property name, shall give a proper error message.

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

            qtqmlteam Qt Qml Team User
            jiu shanheng jiu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes