Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
Description
In the QML engine, we have a need to get the QMetaType for T when give the QMetaType for T* (in ExecutionEngine::toVariant). Currently this works by obtaining the name of T*, removing the "*" character, and doing a lookup of the cut name.
At least for the case where T has a QMetaObject, we could do better, by storing the QMetaType of T in its QMetaObject, and then calling metaType().metaObject().metaType() (which works because metatypes of pointers to QObject/QGadget have access to the QMetaObject).
Attachments
Issue Links
- resulted from
-
QTBUG-88766 Make use of improved QMetaType in QML engine
- Reported