December 1, 2011

Revu Revu
Lab Rat
77 posts

How do I block a shortcut?

 

I have implemented global shortcut keys in which left and right keys are used for volume up and down.But I need to use the same keys to change the tabs in a tabwidget.How do I block these shortcut keys in some of the widgets/windows?

Thank you.

 Signature 

Every fall is to raise higher than Before.

1 reply

December 1, 2011

veeeee_d veeeee_d
Lab Rat
56 posts

Try this: http://doc.qt.nokia.com/4.7/qkeyevent.html#details
Or this: http://doc.qt.nokia.com/4.7/qobject.html#eventFilter

 
  ‹‹ QLineEdit doesn’t accept CJK symbols or punctuation on Mac OS X      QtNetwork on Windows by default with or without SSL ››

You must log in to post a reply. Not a member yet? Register here!