qt6-bb10/qtdeclarative/tests/auto/quick/qquickitem2/data/childrenRectBug.qml

24 lines
556 B
QML

import QtQuick 2.0
Rectangle {
width: 400
height: 200
Item {
objectName: "theItem"
anchors.centerIn: parent
width: childrenRect.width
height: childrenRect.height
Rectangle {
id: text1
anchors.verticalCenter: parent.verticalCenter
width: 100; height: 100; color: "green"
}
Rectangle {
anchors.left: text1.right
anchors.verticalCenter: parent.verticalCenter
width: 100; height: 100; color: "green"
}
}
}