<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt 5.15 &quot;Unhandled key code&quot; on Android (PAX A920)]]></title><description><![CDATA[<p dir="auto">I have an empty Qt Quick app that runs on Android on a PAX A920 device.<br />
My main.qml is this:</p>
<pre><code>import QtQuick 2.12
import QtQuick.Window 2.12

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    Item {
        anchors.fill: parent
        focus: true
        Keys.onReleased: { console.log("KEY RELEASED " + event.key + " " + event.modifiers + " " + event.nativeScanCode); event.accepted = true }
    }
}
</code></pre>
<p dir="auto">When I press the Android home button, nothing happens, and the console is printing this error:</p>
<pre><code>W libAndroidTest_armeabi-v7a.so: Unhandled key code  3 !
D libAndroidTest_armeabi-v7a.so: qml: KEY RELEASED 0 0 0
</code></pre>
<p dir="auto">The same thing is happening when I press the square button for listing opened apps:</p>
<pre><code>W libAndroidTest_armeabi-v7a.so: Unhandled key code  187 !
D libAndroidTest_armeabi-v7a.so: qml: KEY RELEASED 0 0 0
</code></pre>
<p dir="auto">On my phone everything works, so it seems related to PAX A920, but WhatsApp installed on the PAX works good.<br />
How can I solve this problem? I don't need to intercept the home button in my app, I just need it to work.<br />
I made an empty project with Android Studio and the navbar works correctly. Unfortunately I need to make it work with Qt.</p>
]]></description><link>https://forum.qt.io/topic/145754/qt-5-15-unhandled-key-code-on-android-pax-a920</link><generator>RSS for Node</generator><lastBuildDate>Fri, 30 Oct 2026 22:19:52 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145754.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Jun 2023 08:44:36 GMT</pubDate><ttl>60</ttl></channel></rss>