Go to file
mrbesen 66d741954d
no logging, qhash using uint64
2021-12-15 01:11:24 +01:00
example/demo Added example 2015-09-25 21:11:37 +03:00
src no logging, qhash using uint64 2021-12-15 01:11:24 +01:00
.gitignore Updates .gitignore to properly ignore transient build files. 2013-07-12 17:47:55 -05:00
COPYING change LICENSE file 2011-09-06 15:53:47 +02:00
QxtGlobalShortcut.pri Linking against user32 on windows 2015-09-25 22:12:03 +03:00
README.md Added README.md 2015-09-25 21:28:17 +03:00
cpl1.0.txt added reference to CPL, added libqxt contact e-mail 2007-06-25 15:26:38 +00:00
lgpl-2.1.txt LGPL 2009-02-02 16:27:56 +00:00

README.md

QxtGlobalShortcut

Extracted from libqxt.

History and initial file structure is preserved to make possible cherry-picking potential changes from libqxt. Everything not required for QxtGlobalShortcut to work is removed. For more info on the original libqxt project check out their repo on Bitbucket: https://bitbucket.org/libqxt/libqxt

Usage

This project is designed for static linking.

  1. Add source code to your project.

I recommend using git submodules unless you have a better option.

  1. Enable QxtGlobalShortcut by importing provided .pri file:

In your .pro file add:

# Adding QxtGlobalShortcut
include(path/to/QxtGlobalShortcut/QxtGlobalShortcut.pri)
  1. Include "qxtglobalshortcut.h" and use QxtGlobalShortcut class:
#include "qxtglobalshortcut.h"

...

QxtGlobalShortcut myShortcut(QKeySequence("Shift+F1"));
QObject::connect(&myShortcut, SIGNAL(activated()), something, SLOT(shortcutActivated()));

For a more complete usage example see examples dir.