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. Capture specific keyboard events in desktop environment
Forum Updated to NodeBB v4.3 + New Features

Capture specific keyboard events in desktop environment

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 171 Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hi!

    I need to capture keyboard events globally (desktop environment). Must write a audio mixer application which completely replace Pulseaudio in KDE, because my corresponding professional audio interface will not correct detected by Pulseaudio. Want use Qt for the user interface for my mixer application. But need only to capture the VolumeUp, VolumeDown and VolumeMute key events.

    Exists there a Qt C++ class to capture these specific key events from the desktop environment without using Xlib direct?

    I know there exists the grabkeyboard function in QWidget. But this function grabs all events. I only need the above events...

    artwawA 1 Reply Last reply
    0
    • ? A Former User

      Hi!

      I need to capture keyboard events globally (desktop environment). Must write a audio mixer application which completely replace Pulseaudio in KDE, because my corresponding professional audio interface will not correct detected by Pulseaudio. Want use Qt for the user interface for my mixer application. But need only to capture the VolumeUp, VolumeDown and VolumeMute key events.

      Exists there a Qt C++ class to capture these specific key events from the desktop environment without using Xlib direct?

      I know there exists the grabkeyboard function in QWidget. But this function grabs all events. I only need the above events...

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @krjdev My solution would be to use grabKeyboard() on the main window and act only on relevant keys, passing the rest further on.

      For more information please re-read.

      Kind Regards,
      Artur

      1 Reply Last reply
      0

      • Login

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