Standard Accelerator Keys

Applications invariably need to define accelerator keys for actions. Qt fully supports accelerators, for example with QShortcut. Platform defaults for key bindings can also be assigned using QKeySequence::StandardKey.

Here are Microsoft's recommendations for accelerator keys, with comments about the Open Group's recommendations where they exist and differ. For most commands, the Open Group either has no advice or agrees with Microsoft.

The emboldened letter plus Alt is Microsoft's recommended choice, and we recommend supporting it. For an Apply button, for example, we recommend QAbstractButton::setText(tr("&Apply"));

If you have conflicting commands (e.g. About and Apply buttons in the same dialog), you must decide for yourself.

  • About
  • Always on Top
  • Apply
  • Back
  • Browse
  • Close (CDE: Alt+F4; Alt+F4 is "close window" in Windows)
  • Copy (CDE: Ctrl+C, Ctrl+Insert)
  • Copy Here
  • Create Shortcut
  • Create Shortcut Here
  • Cut
  • Delete
  • Edit
  • Exit (CDE: Exit)
  • Explore
  • File
  • Find
  • Help
  • Help Topics
  • Hide
  • Insert
  • Insert Object
  • Link Here
  • Maximize
  • Minimize
  • Move
  • Move Here
  • New
  • Next
  • No
  • Open
  • Open With
  • Page Setup
  • Paste
  • Paste Link
  • Paste Shortcut
  • Paste Special
  • Pause
  • Play
  • Print
  • Print Here
  • Properties
  • Quick View
  • Redo (CDE: Ctrl+Y, Shift+Alt+Backspace)
  • Repeat
  • Restore
  • Resume
  • Retry
  • Run
  • Save
  • Save As
  • Select All
  • Send To
  • Show
  • Size
  • Split
  • Stop
  • Undo (CDE: Ctrl+Z or Alt+Backspace)
  • View
  • What's This?
  • Window
  • Yes

There are also a lot of other keys and actions (that use other modifier keys than Alt). See the Microsoft and The Open Group documentation for details.

The Microsoft book has ISBN 0735605661. The corresponding Open Group book is very hard to find, rather expensive and we cannot recommend it. However, if you really want it, ogpubs@opengroup.org might be able to help. Ask them for ISBN 1859121047.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.