hi
QImage img("/c/documents and settings/usr/desktop/c++/qt/experiments/boundary/sample.jpg",0);
the path specified is wrong.
try
QImage img
("c:\documents and settings\usr\desktop\c++\qt\experiments\boundary\sample.jpg",
0);
QImage img("c:\documents and settings\usr\desktop\c++\qt\experiments\boundary\sample.jpg",0);
To copy to clipboard, switch view to plain text mode
or try
QImage img
("c:\\documents and settings\\usr\\desktop\\c++\\qt\experiments\\boundary\\sample.jpg",
0);
QImage img("c:\\documents and settings\\usr\\desktop\\c++\\qt\experiments\\boundary\\sample.jpg",0);
To copy to clipboard, switch view to plain text mode
however u can directly load image in QPixmap
QPixmap *img
=new QPixmap("c:\documents and settings\usr\desktop\c++\qt\experiments\boundary\sample.jpg");
QPixmap *img=new QPixmap("c:\documents and settings\usr\desktop\c++\qt\experiments\boundary\sample.jpg");
To copy to clipboard, switch view to plain text mode
hope it helps
Bala
Bookmarks