Registry / utility / kglobalaccel

kglobalaccel

JSON →
library6.25.0vcpkgunverified

Global desktop keyboard shortcuts

vcpkg install kglobalaccel
INSTALL
IMPORT
SIG · KGLOBALACCEL
K
kglobalaccel
utilitycppv6.25.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

KGlobalAccel/kglobalaccel.h
#include <KGlobalAccel/kglobalaccel.h>

Register a global keyboard shortcut

#include <KGlobalAccel/kglobalaccel.h> #include <QAction> #include <QKeySequence> #include <iostream> int main() { QAction action("Test"); action.setProperty("componentName", "myapp"); KGlobalAccel::self()->setShortcut(&action, QList<QKeySequence>() << QKeySequence("Ctrl+Shift+T")); std::cout << "Registered global shortcut\n"; return 0; }
Debug
Known issues
gotchaRequires D-Bus and KDE Plasma runtime; may not work on non-KDE desktops
fix
Ensure KDE Plasma is running or use platform-specific alternatives
affects: all
Upgrade
Version history
6.25.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

kglobalaccel — pip install kglobalaccel · libregistry