Segment Editor shortcurts does not work

Hi to everyone :slight_smile:

Today I’m looking for the command to activate and deactivate the segment Editor shortcuts using Python code. The shortcuts sometimes works correctly and then, in the same conditions if I open again the segmentation they doesn’t work anymore.

Can I anybody explain me how this works, and if it’s possible to activate and deactivate it?

Thanks a lot.

Management of shortcuts in Qt is quite complex and fragile. Most often shortcuts break when you are trying to assign a shortcut multiple times. Make sure that after calling installKeyboardShortcuts you always call uninstallKeyboardShortcuts.

1 Like