Details
-
Technical task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
9ac0a380b07c5da0ec0d7224cc8fe5ac21e97676
Description
For the use case of allowing multiple qml modules attached to an executable, we agreed that it should be achieved by creating multiple static qml modules and plugins and the plugins should be linked to the executable.
To ensure symbols are not discarded, Q_IMPORT_PLUGIN calls need to be added to the executable's source code, manually by the project developer.
To facilitate an upgrade path where that might be done automatically by the build system, developers should instead use QT_IMPORT_QML_PLUGIN instead of Q_IMPORT_PLUGIN.
This allows us to make QT_IMPORT_QML_PLUGIN a no-op in future Qt versions when the initialization will be done automatically by the build system, without causing duplicate symbol errors.
QT_IMPORT_QML_PLUGIN's implementation for Qt 6.2 should merely call QT_IMPORT_PLUGIN.
Attachments
Issue Links
- is required for
-
QTBUG-95148 Document use case of linking multiple static qml modules into an application
- Closed