View Full Version : Shortcut keys??

20th July 2011, 08: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.

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