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

QQmlMetaTypeInterface should have a non-null metaObject

    XMLWordPrintable

Details

    Description

      QQmlMetaTypeInterface currently has its metaObject always set to nullptr. However, if we create a QQmlVMEMetaObject anyway in QQmlObjectCreator::populateInstance, we might want to consider setting metaObject to it.

       

      This avoids for instance some weirdness in convert, where dynamic metatypes currently lead to us encountering metatypes with QMetaType::PointerToQObject set which don't have a metaObject.

      Another use case is being able to use inherits with types originating from QML.

       

      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
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes