import QtQuick import QtQuick.Controls BaseCommon { id: self width: parent.width height: 100 Item { id: titleItem width: 100 height: 25 Text{ id: titleText anchors.left: parent.left text: title } } Rectangle { anchors.left: titleItem.right border.color: "gray" border.width: 1 height: parent.height - 4 anchors.right: parent.right clip: true TextEdit{ id: te anchors.fill: parent anchors.margins: 1 onTextChanged: { value = text } } } function setValue(_value) { te.text = _value } }