{"id":18332011,"url":"https://github.com/mrousavy/qhotkeys","last_synced_at":"2025-10-07T03:29:11.532Z","repository":{"id":78946249,"uuid":"121110429","full_name":"mrousavy/QHotkeys","owner":"mrousavy","description":"🔠 A small and lightweight cross platform C++ library implementing a system-wide hotkey system for Qt","archived":false,"fork":false,"pushed_at":"2020-06-18T08:42:14.000Z","size":24,"stargazers_count":11,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T03:33:31.313Z","etag":null,"topics":["global","hotkey","hotkeys","library","linux","macos","qt","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrousavy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"mrousavy","ko_fi":"mrousavy","custom":["https://paypal.me/mrousavy"]}},"created_at":"2018-02-11T10:07:09.000Z","updated_at":"2025-02-11T07:02:32.000Z","dependencies_parsed_at":"2023-02-24T23:00:19.352Z","dependency_job_id":null,"html_url":"https://github.com/mrousavy/QHotkeys","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrousavy/QHotkeys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2FQHotkeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2FQHotkeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2FQHotkeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2FQHotkeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrousavy","download_url":"https://codeload.github.com/mrousavy/QHotkeys/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2FQHotkeys/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278715506,"owners_count":26033295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["global","hotkey","hotkeys","library","linux","macos","qt","windows"],"created_at":"2024-11-05T19:36:55.027Z","updated_at":"2025-10-07T03:29:11.516Z","avatar_url":"https://github.com/mrousavy.png","language":"C++","funding_links":["https://github.com/sponsors/mrousavy","https://ko-fi.com/mrousavy","https://paypal.me/mrousavy"],"categories":[],"sub_categories":[],"readme":"# QHotkeys\n🔠 A small and lightweight cross platform C++ library implementing a system-wide hotkey system for Qt\n\nThere are implementations available for the following compilers/platforms:\n* msvc - Windows\n* linux - Linux/X11\n* macx - MacOSX\n\n## Usage\n#### Install\nRun this command in your project's directory:\n```sh\ngit submodule add https://github.com/mrousavy/QHotkeys\n```\n\nAdd these lines to your Qt Project file (`.pro`):\n```qmake\ninclude(QHotkeys/QHotkeys.pri)\nDEPENDPATH  += QHotkeys/src/\nINCLUDEPATH += QHotkeys/src/\n```\n\n#### Code\n```cpp\n#include \u003cqhotkeys.h\u003e\nusing namespace Qt;\n\n// ...\n\nvoid myCallback(const QHotkey\u0026 hotkey) {\n  // This is executed on a seperate thread!\n  cout \u003c\u003c \"Hotkey pressed!\";\n}\n\n// ...\n\n// Register the hotkey\nQHotkey hotkey(ModifierKey::Control | ModifierKey::Alt, Key_I);\n// Connect pressed signal to one or more callback slots\nQObject::connect(\u0026hotkey, \u0026QHotkey::pressed, \u0026myCallback);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrousavy%2Fqhotkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrousavy%2Fqhotkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrousavy%2Fqhotkeys/lists"}