//矩形为输入框的边框
Rectangle{
x: 10
y: 10
width: parent.width
height: 80
radius:6
border.color:"white" //白色边框
TextEdit{
id: textInput
anchors.fill: parent
horizontalAlignment: Text.AlignLeft // 水平居中
verticalAlignment: Text.AlignVCenter // 垂直居中
wrapMode: TextEdit.Wrap
clip: true //防止文字超出范围
}
}