shawnlau
28th June 2018, 22:42
If I declare a pointer to a QImage I can do this:
QImage *myImage;
//and later..
myImage = new QImage(800,800,QImage::Format_ARGB32)
And if I declare a QImage with the default constructor, it will give me a null QImage and I can do this:
QImage myImage;
//and later
myImage.load(file);
Is there any way to declare a QImage and later set it up as 800,800,QImage::Format_ARGB32 ?
QImage *myImage;
//and later..
myImage = new QImage(800,800,QImage::Format_ARGB32)
And if I declare a QImage with the default constructor, it will give me a null QImage and I can do this:
QImage myImage;
//and later
myImage.load(file);
Is there any way to declare a QImage and later set it up as 800,800,QImage::Format_ARGB32 ?