> Supposedly you have the information in the form of a KeySequence somewhere.
But I can not attach KeySequence to an QTreeWidgetItem, because The UserRole is taken by item_type. OK. Let us make clear what to do. 1. I would like to display one binding for each item. That is to say, lfun with multiple shortcuts will be displayed as multiple items. I know you prefer to put all shortcuts together, but that will make the shortcut edit dialog complicated. 2. system unmodified items are displayed regularly. 3. HOW would you display removed system shortcuts? I guess you want to remove it if there is another shortcut for this lfun, and display the lfun only otherwise. Note that there will be no revert here. 4. New bindings will be displayed in bold, as an extra item. 5. Remove system shortcut will remove shortcut if this is the only shortcut for a lfun, and the whole item if there is anther shortcut. (see 3). There will be no revert. 6. Remove new bindings will remove it. Agreed? Bo