How do you make a configurable keyboard shortcut in PyQT?

how do you make keyboard shorcuts configurable ? As in, how do you accept input from the user to remap a keyboard shortcut ? Is there a PyQT widget which does that ?

QKeySequenceEdit Class | Qt Widgets 6.3.0 might be what you’re looking for.

Closet uses it for its occlusion shortcut:

GitHub - ijgnd/anki__editor__apply__font_color__background_color__custom_class__custom_style makes heavy use of it too:

4 Likes

awesome thank you Sir