import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Window 2.0 ApplicationWindow { title: qsTr("Sticky VKB") width: 480 height: 800 TextField { id: input anchors { left: parent.left; right: parent.right } font.pixelSize: height * 0.8 horizontalAlignment: Text.AlignHCenter height: 90 placeholderText: activeFocus ? qsTr("Write") : qsTr("Tap") inputMethodHints: Qt.ImhMultiLine onAccepted: { model.append({"name":text}) text = "" } } ListView { anchors { topMargin: 90 fill: parent } clip: true delegate: Item { anchors { left: parent.left; right: parent.right } height: 90 Rectangle { anchors.fill: parent; color: "gray"; opacity: 0.8 } Text { anchors.centerIn: parent font { bold: true; pixelSize: parent.height * 0.8 } fontSizeMode: Text.Fit horizontalAlignment: Text.AlignHCenter height: parent.height text: name verticalAlignment: Text.AlignVCenter width: parent.width } } model: ListModel { id: model ListElement { name: "Apple" } ListElement { name: "Orange" } ListElement { name: "Banana" } } } }