[Interest] Qt iOS and installEventFilter
Tor Arne Vestbø
Tor.arne.Vestbo at qt.io
Tue Nov 8 13:10:36 CET 2022
Verify that the keyboard events are coming in as expected in [QUIView handlePresses:evenType:]
If that’s the case, the reason they are being filtered out as key events is because they are being sent as input method events to the focus object.
The iOS platform plugin doesn’t seem to implement the filterNativeEvent machinery. I’ve filed https://bugreports.qt.io/browse/QTBUG-108268 for that
On 8 Nov 2022, at 11:58, Nuno Santos <nuno.santos at imaginando.pt<mailto:nuno.santos at imaginando.pt>> wrote:
I’m trying to find a way of intercepting keyboard events in a global and cross platform way. I don’t want this to be tied to certain element in Qml. I really want to have a global way of catching the keyboard events.
I have created an event filter and added this event filter to the QWindow. While this approach works on Desktop, it does not seem to work for iOS. There are events being catched on the event filter but none of those events are keyboard events. I have also event tried to install a nativeEventFilter on the QApplication but that also didn’t work.
Is there a way to do this on iOS?
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest