Cross-platform library for handling system-wide shortcuts in Qt applications.
This code was originally part of Qtx which is no longer maintained.
- Windows
- OS X
- Linux/X11
- Compiler with C++11 support
- Qt 5 or Qt 4
- CMake 3.0.0 and later
To build the library without installation run:
cmake .
make
To build and install run:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
make install
To build static library run:
cmake -DQXTGLOBALSHORTCUT_STATIC=ON .
make
Directory "example" contains simple CMake project which uses the installed library.
To compile and run the example:
cd example
cmake .
make
./qxtglobalshortcut_text
If cmake
prints error that it cannot find package for the library you have to specify
it's install path. E.g.
qxtglobalshortcut_DIR=/usr/local/lib/cmake/qxtglobalshortcut cmake .
Alternatively you can add the path to CMAKE_PREFIX_PATH
environment variable.