summaryrefslogtreecommitdiffstats
path: root/examples/declarative/behaviours/SideRect.qml
blob: 63b7db22d2ca6c1366ee4906a859af38925f339b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Qt 4.6

Rectangle {
    id: myRect

    property string text

    color: "black"
    width: 75; height: 50
    radius: 5
    border.width: 10; border.color: "white";
    MouseArea {
        anchors.fill: parent
        hoverEnabled: true
        onEntered: { focusRect.x = myRect.x; focusRect.y = myRect.y; focusRect.text = myRect.text }
    }
}