Results 1 to 4 of 4

Thread: How to monitor global key presses

  1. #1

    Default How to monitor global key presses

    There is the eventfilter which will only process key presses if its widget has the keyboard's focus. Is there any cross-platform way to record key presses with Qt? I have found one less than ideal solution, setting global hotkeys with libqxt or uglobalhotkey.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to monitor global key presses

    Global as in application wide or system wide?

    Cheers,
    _

  3. #3

    Default Re: How to monitor global key presses

    System wide. I want to monitor more than a few shortcuts however so a global shortcut with one of those two libraries is not ideal (and they aren't working for me either).

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to monitor global key presses

    That is system dependent.
    You need to find the respective native API.

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 29th April 2014, 09:14
  2. Qt way of powering up the monitor
    By HeReSY in forum Qt Programming
    Replies: 0
    Last Post: 10th December 2012, 10:46
  3. QT on LCD monitor
    By Ratheendrans in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th March 2011, 16:03
  4. X Monitor in a Qt form
    By prasenjit in forum Qt-based Software
    Replies: 1
    Last Post: 29th April 2010, 06:58
  5. signals for key presses ?
    By eGamer in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2009, 09:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.