Release memory with the QImage
General and Desktop
5
Posts
4
Posters
3.9k
Views
1
Watching
-
How I can clear or release memory associated witht he QImage? now I am doing like this
@ if(!image->isNull())
{
delete image;
image = new QImage;
}@I know this is not a good way, but I need to get a QImage with null as shown above, so please help
Thanking You,
Ras -
@image = QImage();@
should also release memory, and you do not need to make image a pointer to QImage to use it.