Hi,
In my Application i have different widgets.I want to handle the keypress event separately to each and every widgets.how do we do that one? please guide me to resolve this thing.
Regards
Hi,
In my Application i have different widgets.I want to handle the keypress event separately to each and every widgets.how do we do that one? please guide me to resolve this thing.
Regards
Kavin
The normal way, with signals and slots. http://doc.trolltech.com/4.6/signalsandslots.html
Is there a specific problem or were you looking for general guidance?
Got to keep the loonies on the path ...
Another way to do it would be to use the QWidget::grabShortcut() function. This allows you to get the event to your widget when the key or key sequence is pressed.
Bookmarks