[Interest] Qt iOS and installEventFilter

Nuno Santos nuno.santos at imaginando.pt
Tue Nov 8 11:58:41 CET 2022


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





More information about the Interest mailing list