Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20885 Larger changes for Qt 5
  3. QTBUG-24154

[API] Store type information for methods in the meta-object

    XMLWordPrintable

Details

    • f95181c7bb340744a0ce172e8c5a8fcdc2543297

    Description

      The meta-object data is currently storing type information for methods as strings (signature, parameters, return type). This makes introspection through QMetaMethod utterly inefficient; the signature is re-parsed again at runtime, type names are copied to QByteArrays, and the types have to be looked up by name (QMetaType::type()).

      If the meta-type id of the return type and parameter types can be computed at meta-object definition time, they could be stored in the
      meta-data for fast and easy retrieval. This is already (partially) supported for meta-properties (see QMetaProperty::userType()), but not for methods.

      This change is being implemented at http://codereview.qt-project.org/#change,14763

      Once this is done, we should also remove support for the old (Qt4) meta-data revisions (<= 6).

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-24154
          # Subject Branch Project Status CR V

          Activity

            People

              kenthans Kent Hansen (Inactive)
              kenthans Kent Hansen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: