If you want a background for the whole application you need to set it on your QMainWindow. If it should only be for the view use QGraphicsView, because QGraphicsScene is only a part of the view!

--> QGraphicsView::drawBackground().