Priority: P2: Important
Affects Version/s: 6.2.0 Alpha
Fix Version/s: None
1) Cherry-pick https://codereview.qt-project.org/c/qt/qtdeclarative/+/346273 to qtdeclarative
2) Configure qtbase and qtdeclarative with -static or -DBUILD_SHARED_LIBS=OFF and build them
3) export QML_IMPORT_TRACE=1
4) Try to run qtbase/bin/qmleasing
5) Observe that app launches but qml is not initialized
Note that qmleasing target links directly to Qt::Qml and Qt::Quick, but does not run qmlimportscanner, does not have Q_IMPORT_PLUGIN(Quick) calls, and does not link against the optional plugins.
Here's the relevant part of the link line to confirm that the libs are linked and the resources with the qmldir are linked.
generated qmldir contents