set shortcut for Qaction pyqt5 code example
Example: set shortcut for Qaction pyqt5
save=QAction("Save",self)
save.setShortcut("Ctrl+S") # can be also other keys like "Ctrl+Alt+S" etc.
save=QAction("Save",self)
save.setShortcut("Ctrl+S") # can be also other keys like "Ctrl+Alt+S" etc.