한국어
Qt

 

import Qt 4.7

Item {
width: 200
height: 200

Rectangle {
id: red
z: 1
color: "red"
width: 100; height: 100

MouseArea {
anchors.fill: parent
onClicked: red.z = blue.z + 1
}

}

Rectangle {
id: blue
color: "blue"
x: 50; y: 50; width: 100; height: 100

MouseArea {
anchors.fill: parent
onClicked: blue.z = red.z + 1
}
}
}