PDA

View Full Version : shortcut key problem in Qpushbutton



BalaQT
12th April 2010, 09:18
hi,
im working in qt4.5 ,debian
i'm having a list of QPushButtons as menu
and i hav given numbers as shortcuts
ex 0 for btn_a
1 for btn_b
2 for btn_c

its working well when i press one key at a time.
but , when 2 keys are pressed in the same time ,
both of the buttons get called.
is there any way to avoid this? [the second button click]

Thnks
Bala

vishwajeet.dusane
12th April 2010, 10:16
Hi

Please go thru QKeySequence class documentation.

You might need to add even filter QKeyEvent to avoid this.