Results 1 to 4 of 4

Thread: Qt Capture windows events outside the application

  1. #1
    Join Date
    Dec 2009
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt Capture windows events outside the application

    Hi,

    I have a Qt application in which i would like to listen to the event <Ctrl + R> even if the application is not focussed i.e, even if the user is using some other application, can someone tell me how this can be done.

    I am looking at winEvent but i am unable to figure out how to use it, is there some example code that i can look at?

    Thanks a lot!

  2. #2
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Question Re: Qt Capture windows events outside the application

    You mean "hotkey" ? Try QxtGlobalShortcut from http://libqxt.org/

  3. The following user says thank you to wirasto for this useful post:

    flair-kun (15th December 2009)

  4. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Capture windows events outside the application

    I have a Qt application in which i would like to listen to the event <Ctrl + R> even if the application is not focussed i.e, even if the user is using some other application, can someone tell me how this can be done
    I guess you will need system level hooks. This will be dependant on OS

  5. #4
    Join Date
    Dec 2009
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Capture windows events outside the application

    I think the QxtGlobalShortcut is what i need, thanks a lot for pointing it out to me

Similar Threads

  1. Grab keyboard events in Windows
    By durbrak in forum Qt Programming
    Replies: 1
    Last Post: 4th February 2007, 19:56
  2. transporting qt application fron linux to windows
    By deekayt in forum Qt Programming
    Replies: 4
    Last Post: 20th October 2006, 22:56
  3. Porting Qt application on windows from linux
    By safknw in forum Qt Programming
    Replies: 13
    Last Post: 22nd May 2006, 13:11
  4. Replies: 10
    Last Post: 28th April 2006, 15:48
  5. Application plugin on windows
    By Eyee in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2006, 17:36

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.