PDA

View Full Version : How to know if a thread belongs to QApplication or not



tarod
7th February 2008, 10:00
Hello,

I'm developing an application where is necessary to create QWidgets in many places out of the main and using threads.

Is there any method or mechanism to know from a thread if that thread belongs to QApplication or not?

Thanks.

wysota
7th February 2008, 10:23
QThread::currentThread()