How I can right justify the QKeySequence in PyQt5?
copy_absolute_path_action = (
create_action(self, _("Copy Absolute Path"), QKeySequence(
get_shortcut('explorer', 'copy absolute path')),
triggered=self.copy_absolute_path))
copy_relative_path_action = (
create_action(self, _("Copy Relative Path"), QKeySequence(
get_shortcut('explorer', 'copy relative path')),
triggered=self.copy_relative_path))
copy_file_clipboard_action = (
create_action(self, _("Copy File to Clipboard"),
QKeySequence(get_shortcut('explorer', 'copy file')),
icon=ima.icon('editcopy'),
triggered=self.copy_file_clipboard))
save_file_clipboard_action = (
create_action(self, _("Paste File from Clipboard"),
QKeySequence(get_shortcut('explorer', 'paste file')),
icon=ima.icon('editpaste'),
triggered=self.save_file_clipboard))
I want the key shortcuts to be right justified and the rest unchanged.
Thanks in advance
In this case the solution is to implement a QProxyStyle: