0
我想创建一个包含文本的自定义下拉框。问题是,当我调整我的Rectangle
以折叠它时,Text
停留在屏幕上。使用文本调整矩形大小
Rectangle {
id: dropdown
height: 200
width: 200
color: "red"
Behavior on height {
NumberAnimation {
duration: 1000;
easing.type: Easing.InQuad
}
}
Text {
id: text
anchors.left: parent.left
anchors.top: parent.top
text: "foobar"
}
}
如何解决这个问题?