[Qt-interest] Any suggestion in QPixmap::loadFromData() ?
hhocean
hhocean at gmail.com
Thu May 6 10:38:08 CEST 2010
Hello everyone:
I have a program that need change page frequestly. the simple code as follow
{
QPixmap pix;
pix = QPixmap::loadFromData(raw,size); // raw is a binary "PNG" data
mylabel.setPixmap(pix)
mylabel.show()
}
The program change page in every second and a page has more than 30
qpixmaps.
if i run this program in long time, i will observe VM size of this program
to increase in a period time.
Enviroment:
Qt : 4.6.2
Ubutun 9.10
I have no idea for this memory leak problem.
Anyone can give me a suggestion?
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100506/79f78bad/attachment.html
More information about the Qt-interest-old
mailing list