PDA

View Full Version : Identifying QThreads



TheGrimace
18th March 2008, 16:19
Is there any way to print a unique ID for a QThread object? I am getting some odd thread behavior and am looking for a way to debug by printing the thread I am in at a given function out to screen.

wysota
18th March 2008, 16:38
See QThread::currentThread() and QThread::currentThreadId().

TheGrimace
18th March 2008, 16:39
Fantastic! Thanks very much!