The "sceneRect" is the coordinate space inside the QGraphicsView.
It has nothing to do with pixels on the screen:
The whole available arae is mapped to the scene rect. Thus you can draw in the view without having to care about your widgets size.
If you want to set the size of the widget itself, you may do that (with any widget) by calling QWidget::resize().
HTH
Bookmarks