Qt Application Manager on Android
-
Hi ,
We are trying to run a project which is based on Qt Application Manager on Android.
We had taken qtapplicationmanager/example/custom-app-man as our starting point.Our Project has lots of 3rdParty and Custom qml plugins as dependency .
In our .pro file , we tried to add our qml using QML_IMPORT_PATH
QML_IMPORT_PATH += /path/to/custom/qml
QML_IMPORT_PATH += /path/to/custom/qml/plugins.so(s)In the generated .apk file we can see the folders inside /path/to/custom/qml added as qml dependency .
But the qml files which are at /path/to/custom/qml is not included.
While the folders inside /path/to/custom/qml is getting added , But the QML files in that directory is not getting added.
Is there any special settings do i have mention in .pro file ?
Thanks in Advance.
-
The variable is QML2_IMPORT_PATH according to the documentation https://doc.qt.io/qt-5/qtqml-modules-identifiedmodules.html.
Anyway, in order to ship QML files with your app, add them to a Qt Resource File (QRC).
-
@sierdzio said in Qt Application Manager on Android:
Anyway, in order to ship QML files with your app, add them to a Qt Resource File (QRC).
Is there any way using the qml file without using .qrc file ?
-
On Android it's tricky, but as far as I know it is possible to:
- use Android assets
- load QML from network