def qObjectReport(verbose=False):
 global qObjCache
 count = {}
 for obj in findObj('PyQt'):
  if isinstance(obj, QtCore.QObject):
   oid = id(obj)
   if (oid not in QObjCache):
    QObjCache[oid] = ((typeStr(obj) + '  ') + obj.objectName())
    try:
     QObjCache[oid] += ('  ' + obj.parent().objectName())
     QObjCache[oid] += ('  ' + obj.text())
    except:
     pass
   print('check obj', oid, str(QObjCache[oid]))
   if (obj.parent() is None):
    walkQObjectTree(obj, count, verbose)
 typs = list(count.keys())
 typs.sort()
 for t in typs:
  print(count[t], ' DCTB ', t)

def qObjectReport ( verbose = False ) : global qObjCache count = { } for obj in findObj ( 'PyQt' ) : if isinstance ( obj , QtCore . QObject ) : oid = id ( obj ) if ( oid not in QObjCache ) : QObjCache [ oid ] = ( ( typeStr ( obj ) + '  ' ) + obj . objectName ( ) ) try : QObjCache [ oid ] += ( '  ' + obj . parent ( ) . objectName ( ) ) QObjCache [ oid ] += ( '  ' + obj . text ( ) ) except : pass print ( 'check obj' , oid , str ( QObjCache [ oid ] ) ) if ( obj . parent ( ) is None ) : walkQObjectTree ( obj , count , verbose ) typs = list ( count . keys ( ) ) typs . sort ( ) for t in typs : print ( count [ t ] , ' DCTB ' , t )
generate a report counting all qobjects and their types .