Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.0 Beta1
-
None
Description
We want to deprecate QQmlExtensionPlugin so that people don't use registerTypes() for registering types anymore.
The templates plugin uses registerTypes() not for registering types but rather for setting a shortcut context matcher. This is wrong for several reasons:
- registerTypes() is originally for registering types, and should not be used for other things.
- The context matcher should not be a global QtQuick affair, but rather specific per window. Only windows that actually contain QtQuick Controls need the Templates shortcut matcher, and only windows with any QtQuick UI at all should have the Quick one.
- Global statics are bad all by themselves.
This is related to QTBUG-90627 because the image providers should also be per window. Currently they are attached to the QML engine. This forces us to keep the initializeEngine() method around, which is similarly bad.
Attachments
Issue Links
- relates to
-
QTBUG-90627 Research a better PixmapCache <-> Image Provider interaction
- Open
- resulted from
-
QTBUG-95448 Re-add QQmlExtensionPlugin documentation
- Closed