You called the same instance of the class? Or a different one? Ex:

Qt Code:
  1. class LoadImg
  2. {
  3. private:
  4. QPixmap image;
  5. QPixmap largePixmap;
  6. image.load("c://Data/image.png");
  7. largePixmap.load("c://Data/image1.png");
  8.  
  9. public:
  10. showagain()
  11. {
  12. // show images , etc
  13. }
  14. }
  15.  
  16. LoadImg img; // image works
  17. img.showagain(); // doesnt work
  18.  
  19. // or:
  20.  
  21. LoadImg img; // image works
  22. LoadImg img2; // doesnt work
To copy to clipboard, switch view to plain text mode