diff options
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/doc/src/javascript/dynamicobjectcreation.qdoc | 9 |
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 |