summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2022-02-07 13:23:43 +0200
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2022-02-10 01:45:10 +0200
commit5deb4e7d254cc4d460c7ccacfeaafb79c3efc30f (patch)
treecae1e85606414045fab97f21ad7aaacf0a1569ee /src/tools
parentd60af047fe9586e9fca31248b8d4d4b9c4fabecd (diff)
Android: document how to handle code that loads QML from strings
If an app is loading QML from a string at runtime from C++, the dependencies/imports might not be bundled into the app package, and then the app might fail at runtime. A fix is to have a QML file with needed imports to properly deploy those impots' libs. Fixes: QTBUG-100394 Pick-to: 6.2 6.3 Change-Id: I10136dc2dd1ac1f4ffe00bcf2cfd6c98e050ef28 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/androiddeployqt/doc/src/androiddeployqt.qdoc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/androiddeployqt/doc/src/androiddeployqt.qdoc b/src/tools/androiddeployqt/doc/src/androiddeployqt.qdoc
index b77d3182c5..2e2167f8d0 100644
--- a/src/tools/androiddeployqt/doc/src/androiddeployqt.qdoc
+++ b/src/tools/androiddeployqt/doc/src/androiddeployqt.qdoc
@@ -185,6 +185,12 @@
It's also possible to manually specify the dependencies of your application.
For more information, see \l{ANDROID_DEPLOYMENT_DEPENDENCIES} qmake variable.
+ \note androiddeployqt scans the QML files of the project to collect the QML imports.
+ However, if you are loading QML code as a QString from C++ at runtime, that might
+ not work properly because androiddeployqt won't be aware of it at deploy time.
+ To remedy that, you can add a dummy QML file that imports such QML modules that
+ are referenced at runtime.
+
\section1 Android-specific qmake Variables
Unless the project has special requirements such as third party libraries,