From 79f6db432ef9a05586176ad4e2fd3ed83be6f53c Mon Sep 17 00:00:00 2001 From: Yoann Lopes Date: Tue, 10 May 2011 13:12:14 +0200 Subject: [PATCH] Documented which thread gets the QSGPaintedItem::paint() call. --- src/declarative/items/qsgpainteditem.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/declarative/items/qsgpainteditem.cpp b/src/declarative/items/qsgpainteditem.cpp index 6bcc607..800e37b 100644 --- a/src/declarative/items/qsgpainteditem.cpp +++ b/src/declarative/items/qsgpainteditem.cpp @@ -415,6 +415,11 @@ void QSGPaintedItem::setRenderTarget(RenderTarget target) Reimplement this function in a QSGPaintedItem subclass to provide the item's painting implementation, using \a painter. + + \note The QML Scene Graph uses two separate threads, the main thread does things such as + processing events or updating animations while a second thread does the actual OpenGL rendering. + As a consequence, paint() is not called from the main GUI thread but from the GL enabled + renderer thread. */ /*! -- 1.7.2.5