PDA

View Full Version : keyup and keydown event



Con Nít
23rd November 2011, 16:06
I want keep Keyup and Keydown event in QT but I can't find exactly event.
I want keep it when user begin press and keep the key until release the key.
I found keyPressEvent and keyReleaseEvent event But it occur continuously when I was pressing and holding the key.


thank !

Lykurg
23rd November 2011, 17:33
Hi, see QAbstractButton::autoRepeat, QAbstractButton::autoRepeatDelay and QAbstractButton::autoRepeatInterval.

Con Nít
24th November 2011, 06:00
No , I want to catch an event in Qwidget.