Not sure what you mean, do you want to clip contents of an item? After setting boundingRect() for an item (e.g. your group) you can set the QGraphicsItem::ItemClipsChildrenToShape flag on it to make it clip its children to its own shape.

As for the view, have a look at QGraphicsView::fitInView().