PDA

View Full Version : QML gridView crahes on QDeclerativeView close



mots_g
4th June 2011, 12:28
I'm using a Qml-GridView to show a set of images. I'm passing across a model dynamically from C++, of list items containing urls of images to be displayed. The urls are web based and not locally stored images. The gridview behaves smartly and starts loading images for grids which are visible on screen. For example, if I have 1500 images and currently have scrolled upto 500, it starts fetching images from 500. However, when I close the page, it crashes. I observed, it crashes only when the grid view has not finished fetching images for the current scree, i.e. while it is fetching and I close the page, the qml-qt code crashes internally. If before closing the page, I wait for a while and allow the images to be fetched, it works fine. I also tried to delete the page after a delay of 5 seconds, ie. I hide the page, show the new relevant page and then in background after 10-15 seconds try to delete the page assuming the images have been fetched by now. However, the code still crashes. Attached is a print-screen of the call-stack on crash.
6517

Please help me resolve this. I've just started using qml.

Thanks,
Mots