It is not really a Qt question: Qt deals with the key presses the operating system sends it when it has focus. The question is whether the OS gives you a way to intercept key presses regardless of where they would naturally flow.
NSEvent addGlobalMonitorForEvents() looks promising to turn on a capture: https://developer.apple.com/document...nitorforevents
Exactly how you access this in your C++ code is not something I am familiar with although I expect that the resulting events should be seen in the Qt event filter.
Thank you ChrisW67, just the answer I needed. I will look into that.
Bookmarks