Definitely not like this

Try this instead:
Qt Code:
  1. gv->setScene(new QGraphicsScene);
  2. gv->scene()->addPixmap(QPixmap("somepixmap.png"));
  3. gv->show();
To copy to clipboard, switch view to plain text mode 
And next time please try to find some code snippet or documentation paragraph that is at least somewhat similar to your problem.