I am sorry,but couldn't understand by "Make QPixmap as class member".
I have now reset the image everytime after the image has changed.
It's only a temporary fix.
Isn't there anything where I only have to give the refernce of the file and the QLabel changes automatically whenever the picture changes.