PDA

View Full Version : Hot key for button



void0
10th May 2009, 14:44
Is there any convenient way to add a hot key for a button (in my case it is F1 key)?

Lykurg
10th May 2009, 14:53
Is there any convenient way to add a hot key for a button (in my case it is F1 key)?
A quick look to the docs says: QAbstractButton::shortcut or QWidget::grabShortcut().

void0
10th May 2009, 15:00
Ok, thanks. I'll try to dig it out.