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

qml: no warning when using attached properties on derived types

XMLWordPrintable

      It seems that its possible to declare a type with attached properties (MessageBoard), derive it in QML (MyMessageBoard), and then use the attached properties on the derived type (MyMessageBoard.expired instead of MessageBoard.expired, for example).

      See the attached reproducer that does not trigger warnings.

      There should be a warning if an attached property is found by looking at the type derived from the non-attached QML type, even if that works at runtime. And at runtime, it should warn.

        1. Archive.zip
          2 kB
          Sami Shalayel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes