Skip to content

ckaiser/UGlobalHotkey

 
 

Repository files navigation

UGlobalHotkey

Decription

UGlobalHotkey is an extension for Qt framework, which implements global hotkeys functionality for Windows Linux and MacOSX platforms. It is written by bakwc, extracted from Pastexen and turned into a shared library by falceeffect.

Modifications in this fork:

Mostly code style changes, better Windows support and whatever else I might need for Lightscreen.

Building from source

  • You can either open project with QtCreator and press Build button
  • Or build it using terminal:
qmake  
make

Usage example

UGlobalHotkeys *hotkeyManager = new UGlobalHotkeys(); 
hotkeyManager->registerHotkey("Ctrl+Shift+F12");
connect(hotkeyManager, &UGlobalHotkeys::activated, [=](size_t id)
{
    qDebug() << "Activated: " << QString::number(id);
});

License

UGlobalHotkey library is licensed as Public Domain, so you are free to do anything with it.

About

Global hotkeys extension for Qt framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.8%
  • QMake 4.8%
  • C 1.4%