[Qt-interest] problems with threads

Andreas Pakulat apaku at gmx.de
Sat Oct 31 13:38:10 CET 2009


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
> QObject::installEventFilter(): Cannot filter events for objects in a different 
> thread.
> QObject::installEventFilter(): Cannot filter events for objects in a different 
> thread.
> QObject::installEventFilter(): Cannot filter events for objects in a different 
> thread.
> QObject::installEventFilter(): Cannot filter events for objects in a different 
> thread.
> QObject::installEventFilter(): Cannot filter events for objects in a different 
> thread.
> 
> When i run my app and display a dialog box in another 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.

Andreas

-- 
You'll feel devilish tonight.  Toss dynamite caps under a flamenco dancer's
heel.



More information about the Qt-interest-old mailing list