[Qt-interest] QPainter: It is not safe to use drawPixmap() outside the GUI thread

Serge mb0 at km.ru
Wed Oct 28 12:36:59 CET 2009


Hello,

I have QT application, which renders SVG on QPixmap in a separate 
thread. Separate thread is needed because rendering takes a lot of time.
this application was developed in QT 4.3.3
it worked fine without warnings.

now i built it in QT 4.5.2
when it works in debug output window i can see a lot of messages:
QPainter: It is not safe to use drawPixmap() outside the GUI thread

Is it critical warning?
Can i leave rendering the same or i need to rewrite rendering so that it 
would not use QPixmap? What thread-safe alternative of using QPixmap?

Thank you!

--
Serge



More information about the Qt-interest-old mailing list