I have a fixed size QGraphicsScene and fixed QGraphicsViewport with a single QGraphicsTextItem inside of it. I am trying to autosize the text inside of the viewport which is done by calling fitInView whenever the text changes. However if enough text is typed it will continue off the bottom of the view, what I want to do is have it stop accepting anymore text input if the graphicsitem's bounding rect is not completely inside the viewport. Any ideas?