ddqd / qxtglobalshortcut5

qxtglobalshortcut library qt5 compatibility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Qxt qxtglobalshortcut qt5


Qxt qxtglobalshortcut library qt5 compatibility Tested with qt5.4 on OSX 10.9.2, linux, windows (mingw and msvc)

usage:

git clone https://github.com/ddqd/qxtglobalshortcut5.git

add in ur .pro file:

include(qxtglobalshortcut5/qxt.pri)

example code:

#include <QDebug>
#include "qxtglobalshortcut.h"
...

QxtGlobalShortcut *shortcut = new QxtGlobalShortcut(this);
shortcut->setShortcut(QKeySequence("Shift+1"));
connect(shortcut, &QxtGlobalShortcut::activated,
    [=]() {qDebug() << "shortcut activated";});

About

qxtglobalshortcut library qt5 compatibility


Languages

Language:C++ 98.8%Language:QMake 1.2%