def listQThreads():
 thr = findObj('[Tt]hread')
 thr = [t for t in thr if isinstance(t, QtCore.QThread)]
 import sip
 for t in thr:
  print('--> ', t)
  print(('     Qt ID: 0x%x' % sip.unwrapinstance(t)))

def listQThreads ( ) : thr = findObj ( '[Tt]hread' ) thr = [ t for t in thr if isinstance ( t , QtCore . QThread ) ] import sip for t in thr : print ( '--> ' , t ) print ( ( '     Qt ID: 0x%x' % sip . unwrapinstance ( t ) ) )
prints thread ids for all qthreads .