Well i see multiple issues here,
1. The handler is onDoubleClicked and not doubleClicked so change it.
2. Since you want to change the height of Rectangle you must refer to it in MouseArea using the id of Rectangle or since it’s a parent of MouseArea you can use parent.
3. No need to use binding there.
So,
MouseArea {
id: mouseArea1
onDoubleClicked:{
parent.height =400
}
}
Also you need not specify width and height for MouseArea since you are already filling it to parent’s width and height.
↧