Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Item {
- Item {
- width:rect1.width
- height: rect1.height
- x: 30
- y: 55
- Rectangle {
- id: rect1
- width: 50
- height: width
- }
- }
- Item {
- width:rect2.width
- height: rect2.height
- x: 3
- y: 79
- //How to get the coordinates without referring to parent's coordinates to move rect2 so that its center is in the center of rect1
- Rectangle {
- id: rect2
- width: 43
- height: width
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement