1 Reply Latest reply: Feb 2, 2013 1:19 PM by BDAqua
Twinky9 Level 1 Level 1 (0 points)

Hello,

 

I am making a Qt application and want to intercept keypresses at a deeper level. To do this I overrided the QWidget::macEvent() function to intercept the EventRef object.

 

For different events (i.e. keyboard events, mouse events, window events) EventRef is equal to the following values:

 

0x104d649f0

0x101425740

0x104d649f0

0x101485950

0x101425740

0x101485950

 

How can I tell if the event is a keyboard event? And how can I find out which key was pressed?


Mac mini, Mac OS X (10.7.5)