ScrollView {
id: view
anchors.fill: parent
TextArea {
cursorVisible: true;
anchors.fill: parent;
wrapMode: TextEdit.Wrap//换行
font.pixelSize: 20;
focus: true;
textFormat:TextEdit.AutoText
selectByMouse:true;
selectByKeyboard: true
}
}
来自帮助文档