I want to use this function:
In my header file I created @QImage *myImage;@
and, in cpp file I initialized it @myImage = new QImage(900, 900, QImage::Format_RGB32);@
It is necessary because the size of image is not always 900x900. The size is taken from a file.
fromImage() function takes a parameter in const QImage & type, but in my program it must be QImage *, as I said above.
I used like this
this code does not give any build error, but during execution gives access violation error.
How can I use it, or how can convert?