import QtQuick import QtQuick.Controls import "../common" // import "../Style" Rectangle { width: 300 height: 300 border.width: 1 border.color: "lightgray" clip: true property alias _te: control TextEdit { id: control width: parent.width - 10 height: parent.height anchors.horizontalCenter: parent.horizontalCenter font.family: "微软雅黑" font.weight: Font.ExtraLight wrapMode: TextEdit.WrapAnywhere color: "#1D2129" property var oldposition: 0 property bool isDelete: false property bool isBack: false property bool isPaste: false focus: true selectByMouse: true } }