summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>2016-01-12 13:10:44 +0100
committerLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>2016-01-20 11:00:15 +0000
commit52d9eeab53b5cfd92c15c9a25894991f84cd827e (patch)
tree86a1aa2d56335b210ee86717b713c8c70d770d6e /src/webenginewidgets
parent463029a3e4ec167373a545c0961205f5f28b1e0a (diff)
Doc: warn about heavy routines blocking content rendering
Task-number: QTBUG-50092 Change-Id: I1f3bbcab3b1999b9ecc86660ff9fef8330775cb4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets')
-rw-r--r--src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc b/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc
index 22eacfda9..aac5228d6 100644
--- a/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc
+++ b/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc
@@ -635,6 +635,9 @@
page.runJavaScript("document.title", [](const QVariant &v) { qDebug() << v.toString(); });
\endcode
+ \warning Do not execute lengthy routines in the callback function, because it might block the
+ rendering of the web engine page.
+
See scripts() for an alternative API to inject scripts.
*/