def shape(self): # override because QGraphicsPathItem.shape is too expensive. return QGraphicsItem.shape(self)