sincnarf
14th October 2007, 13:33
Hello guys I am trying to modify the Image Viewer example of qt so that it gets an image with its constructor. This is wrong... how can I correct this:
ImageViewer::ImageViewer(QImage *image){
.....
QPixmap pixmap = QPixmap::fromImage(*image);
QPixmap pixmap2 = QPixmap::fromImage(&image);
.....
}
The new ImageViewer terminates upon imageviewer show
ImageViewer::ImageViewer(QImage *image){
.....
QPixmap pixmap = QPixmap::fromImage(*image);
QPixmap pixmap2 = QPixmap::fromImage(&image);
.....
}
The new ImageViewer terminates upon imageviewer show