qt6-bb10/qtdeclarative/tests/auto/quick/qquicktextinput/data/navigation.qml

25 lines
489 B
QML

import QtQuick 2.0
Rectangle {
property variant myInput: input
width: 800; height: 600; color: "blue"
Item {
id: firstItem;
KeyNavigation.right: input
}
TextInput { id: input; focus: true
text: "Needs some text"
KeyNavigation.left: firstItem
KeyNavigation.right: lastItem
KeyNavigation.up: firstItem
KeyNavigation.down: lastItem
}
Item {
id: lastItem
KeyNavigation.left: input
}
}