You called the same instance of the class? Or a different one? Ex:
class LoadImg
{
private:
image.load("c://Data/image.png");
largePixmap.load("c://Data/image1.png");
public:
showagain()
{
// show images , etc
}
}
LoadImg img; // image works
img.showagain(); // doesnt work
// or:
LoadImg img; // image works
LoadImg img2; // doesnt work
class LoadImg
{
private:
QPixmap image;
QPixmap largePixmap;
image.load("c://Data/image.png");
largePixmap.load("c://Data/image1.png");
public:
showagain()
{
// show images , etc
}
}
LoadImg img; // image works
img.showagain(); // doesnt work
// or:
LoadImg img; // image works
LoadImg img2; // doesnt work
To copy to clipboard, switch view to plain text mode
Bookmarks