def __init__(self): QGraphicsLayoutItem.__init__(self)
def setGeometry(self, rect): self.prepareGeometryChange() QGraphicsLayoutItem.setGeometry(self, rect) self.setPos(rect.topLeft())