Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.9.7, 5.10, 5.11, 5.12.0, 5.15.0
-
Windows 10 pro 64bit
macOS mojave
Qt 5.9.7/5.12
Description
When we deploy qt app by using macdeployqt, windeployqt or androiddeployqt, we found that qt will deploy many .qml files, most are from QtQuick.Controls 2.x.
However, take a close look at those .qml files, we found they are already embedded into the plugin share library, so there is really no need to deploy those files. And there are many more plugins that also requires some .qml files but do not deploy them separately, such QtMultimedia.
(QtMultimedia does include Video.qml on deployment)
On the other hand, ios/tvos does the right thing and does not deploy those files.
I think the reason is Qt is using qmldir to register those .qml files, so .qml files must be in the same dir. To fix the issue, you either need to register full url (qrc://...) in qmldir, or register those qmls in the registerTypes method in cpp. Either way, it is much better than current situation.
Attachments
Issue Links
- relates to
-
QTBUG-73250 WinExtras: Include the QML files into a resource file or plugin library instead of having them separate
- Reported