TestCase := Rectangle { width: 500px; height: 500px; Text { text: "The red rectangle should be centered horizontally on the green line"; color: black; } Path { x: 250px; y: 100px; width: root.width; height: root.height; commands: "M 100 0 L 100 250 "; stroke_color: green; stroke_width: 2; } PathLayout { x: 250px; y: 100px; width: root.width; height: root.height; commands: "M 100 0 L 100 250 "; Rectangle { color: red; width: 50px; height: 50px; } } }