making a droplist visible
Hi,
I have a panel which has something like:
Code:
Item {
id:
functions;
}
DropList {
id: dropList
visible = false
items:
}
ButtonsContainer {
id:
items: GetItFromFunctionInItem()
onItemClicked: {
var value = text
}
I want to do something like:
Code:
ButtonsContainer {
id:
onItemClicked: {
var value = text
dropList.visible = true
}
How do I do this? If I try to access the "visible" property of DropList in ButtonsContainer::OnItermClicked, it does not work.
My requirement is that once a value is selected, the drop list should become visible so that two more options are visible.
Please help.
Regards,
rsmitha.
Re: making a droplist visible
Aside from this not being valid code, the general concept of assigning a value to another object's property should work.
Cheers,
_