But setRect() is not part of any QGraphicsItem but just QGraphicsRectItem (and QGraphicsEllipseItem) where it makes perfect sense.