[Qt-interest] QPixmap: It is not safe to use pixmaps outside the GUI thread

Penn Taylor penn.taylor at atdeconsulting.com
Wed Jan 27 00:12:54 CET 2010


Never mind; found the old thread discussing this. I'll repost a more 
refined question if the old thread doesn't answer all I need to know.

-Penn Taylor

Penn Taylor wrote:
> I have an application that runs a Qt app in a separate thread, renders 
> the Qt app to a QImage, and then uses the QImage as a texture in an 
> OpenScenegraph app running back in the main thread. This warning 
> (error?) is printed out to the console with every frame:
> 
> QPixmap: It is not safe to use pixmaps outside the GUI thread
> 
> I'm not explicitly using QPixmaps anywhere, and I notice that my dialogs 
> don't render correctly. The frame around buttons is missing, etc. What 
> does the warning mean? Is it the source of the missing button frames? Is 
> this just Qt's internal implicit sharing biting me?
> 
> Any help would be appreciated.
> 
> -Penn Taylor
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
> 



More information about the Qt-interest-old mailing list