11-18-2012 03:04 AM
Hi,
I have downloaded all the images from the Url's and i want to display those images in a list created using GroupDataModel.
app.Cpp
-------------
QVariantMap eventMap; Image img_Image(LoadImage::m_data);//where m_data is a QByteArray eventMap["image"]=QString(LoadImage::m_data.toBase64()); int itval=it.value(); eventMap["id"]=it.value(); ImageListView::dataModel->insert(eventMap); ImageListView::list->setDataModel(ImageListView::d ataModel);
main.qml
-----------------
Page {
Container {
ListView {
objectName: "imageListView"
listItemComponents: [
ListItemComponent {
type: "item"
StandardListItem {
// image: ListItemData.image
imageSource: ListItemData.image
title: ListItemData.id
}
}
]
}
}
}
Here I got the images from the url's and i am able to display the id but i am not able to display the images in the list view using groupdatamodel.
Please help me.
Regards,
Naresh Kodumuri.
11-22-2012 06:04 AM
Hi Naresh,
I am also looking for this kind of loading a list using web URLs.... please post if you got the thing...!
- Regards
Raju
11-22-2012 10:02 AM
Hi,
Any Help!!!!!!!!!!!!!!!!!!
Regards,
Naresh Kodumuri.