[Qt-interest] Any suggestion in QPixmap::loadFromData() ?
Nikos Chantziaras
realnc at arcor.de
Thu May 6 14:26:14 CEST 2010
On 05/06/2010 11:38 AM, hhocean wrote:
> 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?
I came across a similar problem too. I switched to QImage and it seems
it has solved it for me.
More information about the Qt-interest-old
mailing list