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

QML Extention objects don't work with uncreatable types

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.4.0
    • None
    • All

    Description

      I was trying to extend an object type that we get as a replica from QtRemoteObjects (using the .rep files). We already had the replica registered with QML as a foreign type for access to the enums in there. So, I added a QML_EXTENDED(MyTypeExtention) there, and... nothing. 

      In order of what I would like to see to get this addressed, from least-desirable and easiest to most desirable but probably most involved:

      1. There is no mention in the documentation about such a limitation. It seems that extension objects only work on types that you can instantiate in QML?
      2. There is no warning at compilation or at runtime about there being something wrong. 
      3. Ideally, it should just work. It would be a great way to decorate these objects, especially since we can't subclass from them either.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            andre André Somers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes