Add a keyboard shortcut to close the application

Many applications can be closed by the “CTRL + Q” keyboard shortcut. This combination does not seem to be used in Slicer. I am aware that custom keyboard shortcuts can be assigned, just wondering if it could be built-in.

Thank you.

On mac, Cmd-Q can be used to quit Slicer.

On windows, and I think on most if not all linux machines, you should be able to do Alt-F then x. Alt-F brings up the file menu with the x underlined (this is a pretty general pattern for using menus on non-mac systems). Adding Control-Q would be okay, but maybe redundant.

1 Like

ALT+F and x is simple enough on Linux, thank you :smile:

1 Like

We use standard Qt shortcuts - QKeySequence Class | Qt GUI | Qt 6.9.0
According to the table, Ctrl-Q should work on Linux (at least with KDE and Plasma). If you have a debug-mode build and installed Qt debug symbols then you can debug into why Ctrl-Q is not working or what other shortcut is assigned to the Quit action.

I’ll investigate that ASAP, thank you.