freekill
18th February 2010, 04:27
I'm trying to load an image file from disk and I would like to draw the same image along with a rectangle whose size is updated using spin boxes. However, I couldn't load the image. I'm using this code:
QImage img("/c/documents and settings/usr/desktop/c++/qt/experiments/boundary/sample.jpg",0)
QPixmap pixmap = QPixmap::fromImage(image);
The image file is named as sample.jpg. Thanks for the help.
QImage img("/c/documents and settings/usr/desktop/c++/qt/experiments/boundary/sample.jpg",0)
QPixmap pixmap = QPixmap::fromImage(image);
The image file is named as sample.jpg. Thanks for the help.