-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
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).
- resulted from
-
QTBUG-88766 Make use of improved QMetaType in QML engine
-
- Reported
-
For Gerrit Dashboard: QTBUG-92077 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
340374,7 | Introduce QMetaObject::metaType | dev | qt/qtbase | Status: MERGED | +2 | 0 |