Qt KeyEvent PostProcessing
Unsolved
Mobile and Embedded
-
Is there somewhere I can set up hooks to catch key events that haven't been handled by anything else? Like a key post processor?
I want to handle a hardware back button the same on any page that doesn't provide specific handling.
This almost works, but as soon as one of our popups grabs the focus it never comes back so I'm hoping there's someplace to configure key handling that doesn't depend on having focus.
StackView {
id: stack
anchors.fill: parent
initialItem: LogInScreen {}focus: true //pop off the current page on the stack if the user pressed the back button Keys.onBackPressed: pop()
}