[Qt-qml] qml Image memory problem

shiva shivaenigma at gmail.com
Wed Jun 15 20:33:27 CEST 2011


Hi,

I am facing memory problems using qml Image. Basically my code is like this

Image
{
id: bigImage
source : "image://myimage/someurl"
}

I have the declarative image provider that returns a pixmap for this. 
Each pixmap is around 1MB. All I do is to keep on changing the source of 
the image bigImage repeatedly to get different images. After some time I 
run out of memory consistently. On Nokia N7 I saw the memory usage and 
it keeps increasing each time I change the source url.

My understanding is that when I change the source url, the pixmap for 
the previous image should automatically get destroyed but it doesnt seem 
to be happening.
Any suggestions how to handle this ?

-- 
Thanks,
Shiva


More information about the Qt-qml mailing list