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

qmltyperegistrar generates anonymous base types only for direct ancestor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • 6.5
    • 6.2.4, 6.3.0
    • QML: Tooling

      We've added code to auto-generate descriptions of base classes to qmltyperegistrar when encountering a type whose base class is not yet registered. This works but is rather limited. The base classes are only generated recursively if they contain QML_ELEMENT or similar macros. Otherwise only the first base class is registered. Therefore, if you have a hierarchy MyType -> QAbstractListModel -> QAbstractItemModel -> QObject, for example, only MyType and QAbstractListModel are made available to QML tooling automatically. You can easily work around this by either creating your own anonymous types or depending on modules that provide the necessary types, but as we are making an effort we should do so properly.

      Furthermore, properties, signals and methods are also not examined for types not tagged with QML_ELEMENT or similar.

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

            qtqmlteam Qt Qml Team User
            ulherman Ulf Hermann
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes