aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/src/javascript/dynamicobjectcreation.qdoc
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-06-17 15:10:22 +0200
committerRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-06-18 09:11:45 +0000
commit9dee99ece7a10fa7a9b723b0d733c3d99b6cf57f (patch)
tree55ec4a84e7cf91b218c2ae61647d64baddfaaf50 /src/qml/doc/src/javascript/dynamicobjectcreation.qdoc
parent10ce105b25a03fbde1889ea767985d5009658a1d (diff)
Doc: document work-around for static builds using dynamic object creation
Currently we have no system to detect import dependencies that are not explicitly added to a QML file (other than qmldir "depends", which is for plugins only). Until we do, document the work-around. Change-Id: Ic7244728b63bd1f2eb4bf9734474b3e6e48e26fe Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/doc/src/javascript/dynamicobjectcreation.qdoc')
-rw-r--r--src/qml/doc/src/javascript/dynamicobjectcreation.qdoc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qml/doc/src/javascript/dynamicobjectcreation.qdoc b/src/qml/doc/src/javascript/dynamicobjectcreation.qdoc
index 2988f3a684..f0633dd18b 100644
--- a/src/qml/doc/src/javascript/dynamicobjectcreation.qdoc
+++ b/src/qml/doc/src/javascript/dynamicobjectcreation.qdoc
@@ -143,6 +143,15 @@ If the string of QML imports files using relative paths, the path should be
relative to the file in which the parent object (the second argument to the
method) is defined.
+\important When building static QML applications, which is enforced on platforms like iOS,
+QML files are scanned to detect import dependencies. That way, all
+necessary plugins and resources are resolved at compile time.
+However, only explicit import statements are considered (those found at
+the top of a QML file), and not import statements enclosed within string literals.
+To support static builds, you therefore need to ensure that QML files
+using \l{QtQml::Qt::createQmlObject()}{Qt.createQmlObject()},
+explicitly contain all necessary imports at the top of the file in addition
+to inside the string literals.
\section1 Maintaining Dynamically Created Objects