Results 1 to 4 of 4

Thread: Catching WM_HOTKEY events

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Catching WM_HOTKEY events

    Since you are using Qt4, maybe overwriting QCoreApplication::winEventFilter()?

    Cheers,
    _

  2. #2
    Join Date
    Oct 2014
    Posts
    2
    Qt products
    Qt4

    Default Re: Catching WM_HOTKEY events

    Thanks, but unfortunately this doesn't work. I can override winEventFilter and print the contents of the MSG events, but such an event is never raised for a WM_HOTKEY event when I press a hotkey from outside the application, the way it is for the method in the link in my first post. (Also, in a well-known bug, PySide's MSG struct is actually broken; you can't access wParam directly, it's only printed when you print the MSG object directly, but that's irrelevant.)

  3. #3
    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: Catching WM_HOTKEY events

    Then your options are to ask the PySide developers to add the missing functionality and/or fix the broken parts or use PyQt which you already know to work.

    The latter seems to be the more viable choice.

    Cheers,
    _

Similar Threads

  1. QTabWidget - Catching move events
    By RobC in forum Qt Programming
    Replies: 9
    Last Post: 9th March 2012, 23:01
  2. [Qt Widget + libvlc] catching mouse events
    By mentalmushroom in forum Qt Programming
    Replies: 9
    Last Post: 6th March 2012, 13:39
  3. Catching Mouse Events on Top-Level Window
    By andyp in forum Qt Programming
    Replies: 6
    Last Post: 8th September 2009, 10:26
  4. Problem with catching keyPress events ?
    By arbi in forum Qt Programming
    Replies: 12
    Last Post: 1st September 2008, 12:35
  5. Catching X Events
    By nupul in forum Qt Programming
    Replies: 3
    Last Post: 16th April 2006, 12:43

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.