i am developing an application,which needs to load the image dynamically. The images are in the memory.Each time it load may be the same image or a different one. I am using the code as follows
QPixmap image;
QPixmap largePixmap;

image.load("c://Data/image.png");
largePixmap.load("c://Data/image1.png");

Defining in the constructor.
For the 1st time when application start and the object created everything working fine.
But when i came back again call the same class it showing the error image can not load.

Can any one tell what is the problem and how to overcome from the problem

please help!