PDA

View Full Version : making a droplist visible



rsmitha
18th October 2015, 07:54
Hi,

I have a panel which has something like:


Item {

id:
functions;
}

DropList {
id: dropList
visible = false
items:
}

ButtonsContainer {
id:
items: GetItFromFunctionInItem()
onItemClicked: {
var value = text

}

I want to do something like:


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.

anda_skoa
18th October 2015, 09:21
Aside from this not being valid code, the general concept of assigning a value to another object's property should work.

Cheers,
_