Android: back swipe issues
Unsolved
Mobile and Embedded
-
Hi all,
I'm having an issue on Android when the device is configured for navigating using swipe gestures (Android 10+ features).
When the user performs a back gesture, the Keys.onReleased is fired as expected. However, a mouse click is also fired at the same time which I don't think is correct. Is there anyway to avoid that?Below is a short snippet that shows the problem.
import QtQuick import QtQuick.Window Window { MouseArea { anchors.fill: parent onClicked: { console.log("clicked") } } Keys.onReleased: { if(Qt.platform.os === "android") { if (event.key === Qt.Key_Back) { event.accepted = true console.log("navigate back") //navigateBack() } } } }