tests/auto/declarative/qdeclarativemousearea/data/updateMousePosOnClick.qml
changeset 30 5dc02b23752f
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
       
     1 import Qt 4.7
       
     2 
       
     3 Rectangle {
       
     4     color: "#ffffff"
       
     5     width: 320; height: 240
       
     6     MouseArea {
       
     7         id: mouseRegion
       
     8         objectName: "mouseregion"
       
     9         anchors.fill: parent
       
    10         Rectangle {
       
    11             id: ball
       
    12             objectName: "ball"
       
    13             width: 20; height: 20
       
    14             radius: 10
       
    15             color: "#0000ff"
       
    16             x: { mouseRegion.mouseX }
       
    17             y: mouseRegion.mouseY
       
    18         }
       
    19     }
       
    20 }