Javascriptimport QtQuick 2.2 Rectangle { width: 360 height: 360 focus: true Keys.onPressed: { switch (event.key) { case Qt.Key_Home: listView.contentY = 0; break; case Qt.Key_End: listView.contentY = listView.contentHeight - listView.height break; } } ListView { id: listView anchors.fill: parent model: 400000 delegate: Rectangle { width: listView.width height: text.implicitHeight + 20 + (index % 5 == 0 ? 30 : 0) color: index % 2 == 0 ? "white" : "lightGray" Text { id: text anchors.fill: parent horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter text: index + " of " + listView.count } } }}