aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2012-11-29 08:41:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-29 12:00:55 +0100
commita6beaf16a611904170ca43d55c0e7d02287fc80d (patch)
treeedd9830687b8c63de9627c707f602eec9df7c8b5
parent9d8093099a3882bce922884e084977820f97cb62 (diff)
Warn about potential abuse of QQuickPaintedItem::paint().
Change-Id: I9908402b3ada90497070930d43eafd433276201f Reviewed-by: Samuel Rødal <samuel.rodal@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
-rw-r--r--src/quick/items/qquickpainteditem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/items/qquickpainteditem.cpp b/src/quick/items/qquickpainteditem.cpp
index ab216dad9c..7f90c3512a 100644
--- a/src/quick/items/qquickpainteditem.cpp
+++ b/src/quick/items/qquickpainteditem.cpp
@@ -490,6 +490,9 @@ void QQuickPaintedItem::setRenderTarget(RenderTarget target)
As a consequence, paint() is not called from the main GUI thread but from the GL enabled
renderer thread. At the moment paint() is called, the GUI thread is blocked and this is
therefore thread-safe.
+
+ \warning Extreme caution must be used when creating QObjects, emitting signals, starting
+ timers and similar inside this function as these will have affinity to the rendering thread.
*/
/*!