[Qt-interest] QPainter: It is not safe to use drawPixmap() outside the GUI thread
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Thu Oct 29 13:38:04 CET 2009
Andre Somers wrote on Thursday, October 29, 2009 8:28 AM:
> ... A frequent method of using threaded rendering is to
> paint to such QImages in threads, send them to the GUI thread when
> they are done, and have the GUI thread paint those images to it's UI.
Just for the record: the famous "Mandelbrot" example here:
http://doc.trolltech.com/4.5/threads-mandelbrot.html
In this case it is multithreaded and I *think* (by just quickly browsing over above documentation) the worker thread paints into a QImage.
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list