PDA

View Full Version : Shortcut keys??



Zingam
20th July 2011, 09:45
What is the proper way to implement shortcut keys in a desktop applications?
I have buttons and I want to assign them shortcuts keys (well some shortcuts might not be attached to any visual element).
My current attempt to add them to the root element doesn't work. I probably do not understand well enough how the Keys element works.

mcosta
20th July 2011, 09:53
For a button you can use QAbstractButton::setShortcut()