Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hluk/qxtglobalshortcut
Cross-platform library for handling system-wide shortcuts in Qt applications
https://github.com/hluk/qxtglobalshortcut
global-shortcuts library qt shortcuts
Last synced: 24 days ago
JSON representation
Cross-platform library for handling system-wide shortcuts in Qt applications
- Host: GitHub
- URL: https://github.com/hluk/qxtglobalshortcut
- Owner: hluk
- License: other
- Created: 2017-04-26T18:18:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T10:47:18.000Z (almost 2 years ago)
- Last Synced: 2024-05-09T18:54:28.416Z (6 months ago)
- Topics: global-shortcuts, library, qt, shortcuts
- Language: C++
- Size: 43.9 KB
- Stars: 65
- Watchers: 6
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
Cross-platform library for handling system-wide shortcuts in Qt applications.
[![Build Status](https://travis-ci.org/hluk/qxtglobalshortcut.svg?branch=master)](https://travis-ci.org/hluk/qxtglobalshortcut)
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/hluk/qxtglobalshortcut?branch=master&svg=true)](https://ci.appveyor.com/project/hluk/qxtglobalshortcut)[API Reference](https://codedocs.xyz/hluk/qxtglobalshortcut/classQxtGlobalShortcut.html)
This code was originally part of [Qtx](https://bitbucket.org/libqxt/libqxt/wiki/Home) 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:
```bash
cmake .
make
```To build and install run:
```bash
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .
make install
```To build static library run:
```bash
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:
```bash
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.```bash
qxtglobalshortcut_DIR=/usr/local/lib/cmake/qxtglobalshortcut cmake .
```Alternatively you can add the path to `CMAKE_PREFIX_PATH` environment variable.