PDA

View Full Version : How to unload a QPixmap



MorrisLiang
19th June 2010, 19:11
In one of my class,there's a member QPixmap object:


MyClass
{
...
private:
QPixmap myPixmap;
}

I will load a picture into it.And after a period,I want to unload the data (nullify it),make it just like uninitiated.How can I do this?

Lykurg
19th June 2010, 23:30
can't you just use
myPixmap = QPixmap::QPixmap();