title: QGraphicsView not showing image
body: <p>I have a graphicsView in the UI, and I used this code to set an image from the Resources but doesn't work:</p>
  
  <p>-In the header file:</p>
  
  <pre><code>QGraphicsScene *scene;
  </code></pre>
  
  <p>-In the cpp file:</p>
  
  <pre><code>scene = new QGraphicsScene();
  scene-&gt;addPixmap(QPixmap(":/images/alert.png"));
  ui-&gt;graphicsView-&gt;setScene(scene);
  </code></pre>
  
  <p>What's wrong in the code?</p>