Hi
I am trying to display a png image. The code I used is shown below. The problem is that I am unable to set the position of image to be displayed.
By default, it is getting displayed in the L.H.S.
I tried using Scale() and SetAlignment(). But no use.Code:int main(int argc, char *argv[]) { QApplication a(argc, argv); QGraphicsScene scene; QGraphicsView view(&scene); QGraphicsPixmapItem item(QPixmap("c:\\Sunset.jpg")); scene.addItem(&item); view.show(); return a.exec(); }



