Hi,

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

Cheers,
Tor Arne

On 8 Nov 2022, at 11:58, Nuno Santos 
<nuno.san...@imaginando.pt<mailto:nuno.san...@imaginando.pt>> wrote:

Hi,

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?

Thanks!

Regards,

Nuno



_______________________________________________
Interest mailing list
Interest@qt-project.org<mailto:Interest@qt-project.org>
https://lists.qt-project.org/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to