Qt KeyEvent PostProcessing



  • 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()
    

    }


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.