Is it possible for me to figure out if I'm the main thread or from a child thread from QThread::currentThread? Or do I have to keep track of the thread id and just against that?
Thanks.
Is it possible for me to figure out if I'm the main thread or from a child thread from QThread::currentThread? Or do I have to keep track of the thread id and just against that?
Thanks.
QApplication::instance()->thread() will give you main threadid.
Brilliant! Thanks.
Bookmarks