Has someone a boilerplate to use QCoreApplication::installNativeEventFilter on MacOS?
-
Hi
The docs have sample.
http://doc.qt.io/qt-5/qabstractnativeeventfilter.htmlthe cast is
NSEvent *event = static_cast<NSEvent *>(message);There is also
https://forum.qt.io/topic/23877/solved-obtaining-keyboard-keycode-from-qwidget-macevent-s-eventref-paraneter/2