PDA

View Full Version : how to convert QThread::currentThread() to QString?



daemonna
29th June 2010, 01:53
how to convert QThread::currentThread() to Qstring? i want to use it as unique identificator (for example (0x22ff48)) for each 'game room' where each is running in separate thread.

borisbn
29th June 2010, 04:53
QString( "0x%1" ).arg( (int)QThread::currentThread(), 16 );