Skip to content

Instantly share code, notes, and snippets.

@benmcnelly
Created December 11, 2013 16:33
Show Gist options
  • Select an option

  • Save benmcnelly/7913718 to your computer and use it in GitHub Desktop.

Select an option

Save benmcnelly/7913718 to your computer and use it in GitHub Desktop.
Rectangle {
focus: true
Keys.onReleased: {
if (event.key == Qt.Key_Back) {
console.log("Back button pressed, maybe I should go back instad of exit the app")
// here is where I would call the function that navigates to the previous frame if there was one, and if it at first frame then exit app...
event.accepted = true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment