From: Yoann Lopes Date: Tue, 10 May 2011 11:12:14 +0000 (+0200) Subject: Documented which thread gets the QSGPaintedItem::paint() call. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=79f6db432ef9a05586176ad4e2fd3ed83be6f53c;p=konrad%2Fqtdeclarative.git Documented which thread gets the QSGPaintedItem::paint() call. --- 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. */ /*!