Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. WH_KEYBOARD_LL hook to QKeyEvent
QtWS25 Last Chance

WH_KEYBOARD_LL hook to QKeyEvent

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 669 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SavageTwinky
    wrote on last edited by aha_1980
    #1

    Is there any way to manual way to convert this? I decided I wanted to make a sound board app that uses the low level hooks to play sounds without focus but noticed this isn't a 1:1 match from virtual key/scancode to QKeyEvent. It seems easy to get the reverse...

    I'm currently digging into QWindowsKeyMapper but thats in a plugin that I do not seem to have easy access to from Qt. I may have to copy paste a bunch of code but if there is a way please teach me! Alternatively if there is a way to capture key presses from another app I don't have control over to make single key shortcuts .

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SavageTwinky
      wrote on last edited by
      #2

      I found a reasonable work around, instead of trying to match keys just use the event from WH_KEYBOARD_LL to assign it....

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved