import QtQuick import QtQuick.Controls BaseCommon { id: self width: parent.width height: 25 Item { id: titleItem width: 100 height: parent.height Text{ id: titleText anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter text: title } } TextField{ id: tf anchors.left: titleItem.right anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter onTextChanged: { value = text } } function setValue(_value) { tf.text = _value } }