OnReturnPressed: not workiong
-
@ Button {
id: btnStart
iconsrc: qsTr("")
text: qsTr("START")
visible: false
anchors { top: txtSelectVehicle.bottom; topMargin: 10; left: txtSelectVehicle.left }
focus: true
Keys.onReturnPressed: {
console.log(event.key + "enterrrrrrrrrrrrrrrrrrrrrrrrrrrr")
}Keys.onEnterPressed: console.log("enter") Keys.onEscapePressed: console.log("esc") Keys.onDeletePressed: console.log("delete")
}}@
any of this is not working
EDIT: moved to QtQuick forum, Gerolf
-
You need to post this question on "Qt Quick forum":http://qt-project.org/forums/viewforum/12/
Edit : Thanks :)
-
You could add to the parent element the following:
@
Keys.forwardTo: [btnStart]
@It could be that the parent element is getting all the Key events.
-
thank you sir i got it.