'Set the item\'s shape `rect`. The item should be confined within
this rect.'

def setShapeRect(self, rect):

    path = QPainterPath()
    path.addEllipse(rect)
    self.setPath(path)
    self.__shadow.setPath(path)
    self.__shapeRect = rect
