Hi. In my program written on ruby+qt I want to bind desktop-wide keyboard shortcut to some function. Default qt does not support this. What is the best method to reach this goal? (This was also posted on Freenode's #qtruby few days before, still not answered) I tried to bind global keyboard shortcut to shellscript that sighups my application but the handler seems to be launched only after a long time ~10s-1m. I posted more details and test sample to https://github.com/ryanmelt/qtbindings/issues/42 (now I think I should have asked here first). On my system ruby interpreter performs write(4, "!", 1) just after receiving sighup. If Qt::Application was created and exec'ed, we then see unsuccessful read and recvfrom continued by poll. This every poll lasts for very long time. If we do not launch Qt::Application, after sighup we receive sigvtalarm and then immediately run signal handler. Please tell me whether unix-signal approach is (should be) good enough and if there is a way better method. Nearly-actual sources of my app can be seen at https://gist.github.com/3784802 by the way.
on 2012-09-30 00:52
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.