Skip to content

hluk/qxtglobalshortcut

Repository files navigation

Cross-platform library for handling system-wide shortcuts in Qt applications.

Build Status Windows Build Status

API Reference

This code was originally part of Qtx which is no longer maintained.

Supported Platforms

  • Windows
  • OS X
  • Linux/X11

Requirements

  • Compiler with C++11 support
  • Qt 5 or Qt 4
  • CMake 3.0.0 and later

Build

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

Use the Library

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.

About

Cross-platform library for handling system-wide shortcuts in Qt applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published