[Qt-interest] capture global keyboard events

Martin Guillon MGuillon at movea.com
Fri Feb 12 19:19:09 CET 2010


Hi,

I am trying to make a widget to record keyboard shortucts in order to reproduce them after on button click.

I managed to make my recorder but I have a problem when the user enters a global shortcut. The problem is that when he does so (WIN+R for example) my application loses the focus and so I don't get the whole keyboard event. Most of the time I get only the first modifier(WIN in the last example).

I tried using grabKeyboard but it doesn't work.

Does anyone see a solution?
I need to make it work under windows and OSX

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100212/a363b80a/attachment.html 


More information about the Qt-interest-old mailing list