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

    • f95181c7bb340744a0ce172e8c5a8fcdc2543297

      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).

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

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

              Created:
              Updated:
              Resolved: