PDA

View Full Version : Event Handling in Multible Screens



kavinsiva
9th June 2010, 13:48
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

JD2000
9th June 2010, 14:12
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?

amoswood
9th June 2010, 15:22
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.