Menu{
id : menu1
title: "Sous menu 1"
Section{ text: "CheckBox" }
CheckBox{
text: "CheckBox"
onCheckedChanged: {
if(check.enabled == false)
check.enabled = true
else
check.enabled = false
}
}
Submenu{ id: check; enabled: false; target: menu2}
}
Menu{
id : menu2
title: "Sous menu 2"
Section{ text: "Action"}
Action{ text: "Fermer menu"; onClicked: close();}
}