Cross-platform library for handling system-wide shortcuts in Qt applications
OTHER License
Cross-platform library for handling system-wide shortcuts in Qt applications.
This code was originally part of Qtx which is no longer maintained.
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.