1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
import QtQuick 2.0
Item {
width: 300
height: 300
Item {
anchors.centerIn: parent
Rectangle {
objectName: "childrenRectProxy"
x: container.childrenRect.x
y: container.childrenRect.y
width: container.childrenRect.width
height: container.childrenRect.height
color: "red"
opacity: 0.5
}
Item {
id: container
Rectangle {
x: -100
y: -100
width: 10
height: 10
color: "red"
}
Rectangle {
x: -60
y: -60
width: 10
height: 10
color: "red"
}
}
Rectangle {
id: origin
width: 5
height: 5
color: "black"
}
}
}
|