import Qt 4.6 Rectangle { width: 200 height: 100 Item { width: 54 height: 45 anchors.verticalCenter: parent.verticalCenter Rectangle { x: 10; y: 1 width: 52 height: 43 color: "black" border.width: 2 border.color: "red" radius: 3 smooth: true } Rectangle { x: 100; y: 1 width: 52 height: 44 color: "black" border.width: 2 border.color: "red" radius: 3 } } }