Short version
How do you implement undo functionality for edits made on QListWidgetItems in PySide/PyQt?
QListWidgetItems
Hint from a Qt
I would do it like this:
Create a custom QItemDelegate and use these two signals:
editorEvent
closeEditor
On editorEvent: Save current state
On closeEditor: Get new state and create a QUndoCommand that set the new state for Redo and the old state for Undo.
QUndoCommand
Redo
Undo