[Qt-interest] Capturing global keyboard events?

Thiago Macieira thiago at kde.org
Sat Jul 17 13:43:03 CEST 2010


On Saturday 17. July 2010 08.19.17 Anatoly Burakov wrote:
> Hi all
> 
> Can i capture system-wide keyboard events with QT? Like - write a small
> program that listens to global keyboard events, put it in the tray and
> let it wait for some keystroke?

Yes, but for the actual capturing of events you need to use platform-specific 
API, or use libqxt. Qt doesn't have API for that.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100717/418ce251/attachment.bin 


More information about the Qt-interest-old mailing list