import Qt 4.7 Rectangle { id: rectangle1 width: 400 height: 400 color: "#0743c6" Rectangle { id: ball x: 18 y: 21 width: 100 height: 100 radius: 50 gradient: Gradient { GradientStop { position: 0 color: "#f3b60e" } GradientStop { position: 1 color: "#000000" } } border.color: "#d79505" } Rectangle { id: topLeftRect width: 100 height: 100 color: "#00000000" radius: 6 anchors.left: parent.left anchors.leftMargin: 20 anchors.top: parent.top anchors.topMargin: 20 border.width: 1 border.color: "#000000" MouseArea { id: mouse_area1 anchors.fill: parent } } Rectangle { id: topLeftRect1 x: -2 y: -8 width: 100 color: "#00000000" radius: 6 anchors.bottom: parent.bottom anchors.bottomMargin: 307 border.color: "#000000" MouseArea { id: mouse_area2 anchors.fill: parent } border.width: 1 anchors.leftMargin: 20 anchors.left: parent.left } }