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
✓ #include <KGlobalAccel>
Register a global keyboard shortcut
#include <KGlobalAccel>
#include <QAction>
QAction* action = new QAction("My Action");
action->setProperty("componentName", "myapp");
action->setProperty("componentDisplayName", "My App");
action->setProperty("shortcutName", "my_shortcut");
KGlobalAccel::self()->setShortcut(action, QList<QKeySequence>() << QKeySequence("Ctrl+Shift+A"));
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.