Can I Do a Multiplataform Keyboard Hook?
-
I need to capture some keyboard events, and the application will be on the notify area, or like a icon on the task bar, but I need to run the same application on linux and windows, is there any way to do this? Say, do a multiplatform "Keyboard Hook"? I'm talking about keybord hooks but I don't know if this is the right thing to do.
-
Ok, so system-wide.
Qt itself does not support that (yet), but you can use the Qxt library that adds support for it using the "QxtGlobalShortcut":http://libqxt.bitbucket.org/doc/tip/qxtglobalshortcut.html class.
-
With all the respect I would like to ask dotK to avoid posting multiple times same topics. This thread seems to be identical to "Multiplataform Keyboard Hook":http://qt-project.org/forums/viewthread/24144/
-
[quote author="dotK" date="1359115411"]I posted again because I could not visualize the previous post[/quote]
There are several ways to find your old posts. You can just go to your profile and press on: "View all posts by dotK (14)":https://qt-project.org/forums/member_search/132489
P.S. Sorry for the huge offtopic.
-
[quote author="leon.anavi" date="1359115617"]
[quote author="dotK" date="1359115411"]I posted again because I could not visualize the previous post[/quote]There are several ways to find your old posts. You can just go to your profile and press on: "View all posts by dotK (14)":https://qt-project.org/forums/member_search/132489
P.S. Sorry for the huge offtopic.[/quote]
It's ok, I made a little mistake, thanks for the adversiment