Unsolved Has someone a boilerplate to use QCoreApplication::installNativeEventFilter on MacOS?
-
According to the documentation of QAbstractNativeEventFilter::nativeEventFilter states message can be casted to an EventRef.
EventRef is defined through Objective-C in "AppKit/NSEvent.h".
So I'am wondering how this could be used? -
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