Hi,

I'm digging this post because I'm facing the same issue, still valid with Qt 5.10
While working in the CLI "solves" the mouse issue, keyboards events are also forwarded and the CLI receives them.

I've built Qt directly on the raspberry, in particular with udev, libinput and xkbcommon supported.
This seems to be specific to the raspberry because the same application does not forward the mouse and keyboard events in a centos...

Any idea because it is very annoying ?...


The simple program I've created to highlight the issue is:

import QtQuick 2.10
import QtQuick.Window 2.10
import QtQuick.Controls 2.2


Window {
visible: true
title: qsTr("Hello World")
visibility: "FullScreen"

width: 480
height: 800
maximumHeight: height
maximumWidth: width

// Background
Rectangle {
id: mainBackground
anchors.fill: parent
width: parent.width
height: parent.height
focus: true

gradient: Gradient {
GradientStop {
position: 0
color: "#808080"
}
GradientStop {
position: 1
color: "#666666"
}
}

MouseArea {
anchors.fill: parent
onClicked: {console.log("mouse click trapped"); mouse.accepted = true}
onPressed: {console.log("mouse press trapped"); mouse.accepted = true}
}

Keys.onPressed: {
console.log("key pressed trapped")
event.accepted = true
}
Keys.onReleased: {
console.log("key released trapped")
event.accepted = true
}

Button {
width: 100
height: 30
text: "quit"
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
onClicked: {
Qt.quit()
}
}
}
}