Hi All,

I am creating a QML application that should load lot of images in a ListModel, the problem is that when I receive lot of images , the application becomes almost not responding. What I mean by that is the images will not be shown anymore (appears white images instead ) and when I click the menu for example it appears transparent and navigating between pages will become black screen until I send the application to background then foreground and all these bugs disappear and the application response normally again till I load more images( about 20-30 images) then the problem reappear.

Note the images link are returned by JSON and i cannot set these links to the image source in qml because lot of redirects exist in the link (I don’t know if there is a way to handle the redirects in QML images so I can set these links directly to the source) , so what I am doing is to get the images base 64 from these links then set the image using the following

Code:
var sourcetypeimgbase64= "data:image/png;base64,"+base64;
imagesModel.setProperty(i,"sourcetypeimg",sourcetypeimgbase64)//I is the corresponding index of the image
I tried to use gc() function in QML each time before getting more image and increase the TARGET.EPOCHEAPSIZE = 0x0200000 0x10000000 but still not worked at all.

Anyone can help me please, It has been almost 1 week trying to solve the problem!!!
Thank you