duc_bkav
18th November 2011, 09:20
i have run the follwing code (This is the sample code for SelectionListItem)
SelectionListItem {
id: item
title: "City"
subTitle: selectionDialog.selectedIndex >= 0
? selectionDialog.model.get(selectionDialog.selected Index).name
: "Please select"
onClicked: selectionDialog.open()
SelectionDialog {
id: selectionDialog
titleText: "Select one of the values"
selectedIndex: -1
model: ListModel {
ListElement { name: "Helsinki" }
ListElement { name: "Oulu" }
ListElement { name: "Rovaniemi" }
ListElement { name: "Tampere" }
ListElement { name: "Vaasa" }
}
}
}
But when i click on , the figure just fade in , no element was pop up in window ??
Somebody can help me fix this bug :(
Thank u so much
SelectionListItem {
id: item
title: "City"
subTitle: selectionDialog.selectedIndex >= 0
? selectionDialog.model.get(selectionDialog.selected Index).name
: "Please select"
onClicked: selectionDialog.open()
SelectionDialog {
id: selectionDialog
titleText: "Select one of the values"
selectedIndex: -1
model: ListModel {
ListElement { name: "Helsinki" }
ListElement { name: "Oulu" }
ListElement { name: "Rovaniemi" }
ListElement { name: "Tampere" }
ListElement { name: "Vaasa" }
}
}
}
But when i click on , the figure just fade in , no element was pop up in window ??
Somebody can help me fix this bug :(
Thank u so much