def find_item_at(scene, pos, order=Qt.DescendingOrder, type=None, name=None):
 items = scene.items(pos, Qt.IntersectsItemShape, order)
 for item in items:
  if ((type is not None) and (not isinstance(item, type))):
   continue
  if ((name is not None) and isinstance(item, QObject) and (item.objectName() != name)):
   continue
  return item
 else:
  return None

def find_item_at ( scene , pos , order = Qt . DescendingOrder , type = None , name = None ) : items = scene . items ( pos , Qt . IntersectsItemShape , order ) for item in items : if ( ( type is not None ) and ( not isinstance ( item , type ) ) ) : continue if ( ( name is not None ) and isinstance ( item , QObject ) and ( item . objectName ( ) != name ) ) : continue return item else : return None
find an object in a :class:qgraphicsscene scene at pos .