import QtQuick import QtQuick FocusScope { property alias input: input property alias text: input.text height: input.contentHeight + 8 Rectangle { anchors.fill: parent border.color: "gray" color: "lightsteelblue" } TextInput { id: input anchors.fill: parent anchors.margins: 4 focus: true } }