Global Key Event QML



  • Hello
    There is many bug in QML key event in android

    I want to make global Key Event like BackButton
    I add key.press in mainwindow and not working
    How I can write back button code to navigate between view

       Keys.onReleased: {
            console.log("keyBack")
            if (event.key === Qt.Key_Back) {
                event.accepted = true;
                backPress()
            }
        }
    

    never rise :|
    How I could write global key event?


Log in to reply
 

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