PDA

View Full Version : perviewing image on qgrapihcsview



amagdy.ibrahim
17th June 2008, 22:47
I need to preview image on qgraphics view control in the form
ui.graphicsView=new QGraphicsView(&(CustomSlot::scene),this);
QPixmap pix( "E:\\QT\\4.4.0\\Tree3\\pix_jpg.jpg");
scene.addPixmap( pix );

but this code dosn't show the image in the control ui.graphicsView

aamer4yu
18th June 2008, 05:29
What are scene and CustomSlot::scene ??