도와주세요.Listview에서 더미 이미지를 바꾸려면 Blackberry10
QML 파일에서 ListView를 만들고 webservice에서받은 데이터로 채 웁니다.이 웹 서비스는 이미지를 제공하지 않으므로 그 위치에 더미 이미지를 배치해야합니다. 그런 다음 url에서 이미지를 가져 오는 또 다른 방법을 사용했습니다. 이제 내 cpp 파일에 이미지가 있습니다. 그러나 목록보기를 업데이트 할 수 없습니다. 나는 많은 방법을 시도해 봤지만 실패했다. 다음은 제 코드입니다.
ListView {
id: listView
objectName: "listView"
dataModel: ArrayDataModel {
id: myListModel
}
// Override default GroupDataModel::itemType() behaviour, which is to return item type "header"
listItemComponents: ListItemComponent {
id: listcomponent
// StandardListItem is a convivience component for lists with default cascades look and feel
StandardListItem {
id: stdlst
title: ListItemData.postText
description: ListItemData.postDate
status: ListItemData.filePath
imageSource: assets:///image.png
}
}
layoutProperties: StackLayoutProperties {
spaceQuota: 1.0
}
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
}
이 목록보기의 imagource를 다른 이미지로 바꿔야합니다. 어떻게 할 수 있습니까? 당신이해야 할 일은
제발 도와주세요 : ... ( –