Hello, I have the following code:

Qt Code:
  1. void MainWindow::on_actionTest_triggered()
  2. {
  3. QImage image("test.JPG");
  4. item = new QGraphicsPixmapItem(QPixmap::fromImage(image));
  5. scene->addItem(item);
  6. ui->graphicsView->setScene(scene);
  7.  
  8. }
To copy to clipboard, switch view to plain text mode 

I have no idea how I can set the location for the image.
Any suggestions would be appreciated.