There's no code to post as far as I can remember. You only have to override boundingRect() correctly and then you can call the method sceneBoundingRect() to get the bounding rect resulting after the transformations you applied.