Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Window {
- visible: true
- width: 640
- height: 480
- title: qsTr("Hello World")
- property int rightPressedCount: 0
- TextField {
- focus: true
- Keys.onPressed: {
- if (event.key === Qt.Key_Right) {
- console.log("Pressed")
- rightPressedCount++
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment