summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-05-10 13:44:36 +0200
committerUlf Hermann <ulf.hermann@qt.io>2023-05-12 15:06:42 +0200
commitc5c87e2358d863b000c1e4ceda274ca6d7cea8e3 (patch)
treef3ba037bc796bb3e149cf5d6fdcb4ede10272558
parentc8cba48b92575d0e7ffcdc910b38e02d232f6c21 (diff)
downloadqtdeclarative-c5c87e2358d863b000c1e4ceda274ca6d7cea8e3.tar.gz
Doc: Document the --verbose flag to qmlcachegen
Amends commit a7c92814f0ff6e9253c781b90e70ad645f8cd94e. Change-Id: I0568298aaa696036b5115f4e93ddeb1cf90c76a3 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Mike Trahearn <mtrahearn@topcon.com>
-rw-r--r--src/qml/doc/src/cmake/qt_add_qml_module.qdoc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/qml/doc/src/cmake/qt_add_qml_module.qdoc b/src/qml/doc/src/cmake/qt_add_qml_module.qdoc
index c235539d98..72de6829f0 100644
--- a/src/qml/doc/src/cmake/qt_add_qml_module.qdoc
+++ b/src/qml/doc/src/cmake/qt_add_qml_module.qdoc
@@ -281,6 +281,23 @@ set_target_properties(someTarget PROPERTIES
)
\endcode
+Finally, the \c --verbose argument can be used to see diagnostic output from
+qmlcachegen:
+
+\badcode
+set_target_properties(someTarget PROPERTIES
+ QT_QMLCACHEGEN_ARGUMENTS "--verbose"
+)
+\endcode
+
+With this flag set, qmlcachegen will output warnings for each function it
+cannot compile to C++. Some of these warnings will point to problems in your
+QML code and some will tell you that certain features of the QML language are
+not implemented in the C++ code generator. In both cases, qmlcachegen will
+still generate byte code for such functions. If you want to see only the
+problems in your QML code, you should use qmllint and the targets generated
+for it instead.
+
\target qmllint-auto
\section2 Linting QML sources