PDA

View Full Version : QPushbutton vs QkeyEvent



iswaryasenthilkumar
12th June 2015, 07:46
i have two button example button1,button2.
when i click button1,it start to display first image after i press right key by using keypressevent the next image shuld display.my problem is after clicking button1 the first image dispalyed,after that when i press right key the image not displayed,key event not executing.so i removed button and directly i displayed first images after i pressed rightkey the next image was displayed,when i use button keyevent not executing to me what am doing wrong??
please guide me Qt experts.:confused:
Thanks in advance:o

anda_skoa
12th June 2015, 13:48
make sure the widget you've implemented the key event handling in has the focus.

Cheers,
_