Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Global Key Event QML
Qt 6.11 is out! See what's new in the release blog

Global Key Event QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cinohee
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved