Rectangle { color: "red" width: 300 height: 200 Rectangle { color: "blue" width: 100 height: 100 anchors { top: 50 left: 50 } } }