[Qt-interest] problems with threads
Srdjan Todorovic
todorovic.s at googlemail.com
Sat Oct 31 14:14:48 CET 2009
Hi,
2009/10/31 Andreas Pakulat <apaku at gmx.de>:
> On 31.10.09 16:03:50, Andrei Sebastian Cimpean wrote:
>> Hello everybody... I am getting this errors:
>> QPixmap: It is not safe to use pixmaps outside the GUI thread
>> I searched for
>> how to fix it on the web but unfortunately i couldn't find any. How could i fix
>> this? Has anyone run into this problem before?
>
> You can't do GUI operations from any thread except the one that created
> QApplication. Its simply not possible and the archive of this list has
> plenty of similar threads.
Amazing how many people say they search on the web but do not find any answers.
One of the first things people should think about is that the phrase
"QPixmap: It is not safe to use pixmaps outside the GUI thread" is
something that is generated by Qt and would be constant (ignoring
i18n), and will appear in other people's mailing list emails when they
have encountered the same problem. (maybe some people were not aware
of this trick, so here's a lesson for today :) )
Indeed, searching that exact phrase gives us a nice thread as first
Google hit, from 2008 on the qt-interest list that would be of great
use to the original poster.
Here's the post anyway:
http://lists.trolltech.com/qt-interest/2008-11/thread00534-0.html
Regards,
Srdjan
More information about the Qt-interest-old
mailing list