12-07-2012 08:25 AM
Anyone can provide me the sample application for creating a listview using QListDataModel.I want to create a imagelistview and those images should be downloaded from url.In the qml i have created a listview and using ListItemData property i want to set the image for the list item.I tried with GroupDataModel stored the image in QVariantMap along with other strings i did not save the images in the filesystem.If i store those files in the filesystem then i am able to show those images in the listview .I read in the documentation that this model will show the items in the listview if it is convertible to QVariant.Please provide me the sample application using QListDataModel.
02-02-2013 04:31 AM
The bucketlist sample application uses QListDataModel: http://developer.blackberry.com/cascades/sampleapp
You can also download it from GitHub: https://github.com/blackberry/Cascades-Samples
03-17-2013 08:30 PM - edited 03-18-2013 07:26 PM
To load your image from a URL, you can look @ the following project..
I used it in my projects and it works very nicely, the component is pretty slick This was taken from the following post...
There is a variant, which I can't recall that uses caching... This will avoid pulling the images each time. If you can garantee the image never changes, this is a great add-on to avoid costly data pull.