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:
Qt Code:
  1. ImageViewer::ImageViewer(QImage *image){
  2. .....
  3. QPixmap pixmap = QPixmap::fromImage(*image);
  4. QPixmap pixmap2 = QPixmap::fromImage(&image);
  5. .....
  6. }
To copy to clipboard, switch view to plain text mode 

The new ImageViewer terminates upon imageviewer show