title: Change Pixmap Position in QGraphicsScene/View in Qt5
body: <p>I have a normal QGraphicsView/QGraphicsScene and all I want to do is load a QPixmap (.png) to the graphic and manually set the position of that QPixmap image. I've found solutions but they don't work on Qt5. Any ideas on how to achieve this on Qt5? Thank you.</p>
  
  <pre><code>QGraphicsScene* scene = new QGraphicsScene(QRect(0, 0, 600, 400));
  
  QPixmap Pix(":/test.gif");
  
  // doesnt work
  //Pix.setGeometry(QRect(-30, 40, 260, 200));
  
  
  QGraphicsPixmapItem *item1 = scene-&gt;addPixmap(Pix);
  
  // doesnt work
  //item1-&gt;setPos(-25, 45);
  //scene-&gt;addPixmap(Pix)-&gt;setPos(0,0);
  
  //QGraphicsView* view = new QGraphicsView(ui-&gt;centralWidget);
  
  QGraphicsView* view = new QGraphicsView(this);
  
  view-&gt;setScene(scene);
  </code></pre>