Undo/Redo for Node Movement is not working
I am trying to track down an issue and following is the unexpected behavior.
the Undo/Redo for node movement action is successfully registered and then I expects the Undo/Redo call should be triggered within the class NodeMovedCmd(QtGui.QUndoCommand).
and also the node movement event is successfully captured and emitted event with the node data information.
unfortunately, the delivered event doesn't hold the node data information and the data is disappeared.
so, I am wondering why ?
I found the reason and workaround. It is because of pyside6 bug and then please refer the following link if you are interested porting to pyside6.
https://stackoverflow.com/questions/76579504/how-dose-pyside6-signal-emit-transfer-data-for-dictionary-data-why-the-behavio
the best workaround is just changing the moved_nodes = QtCore.Signal(dict) and insert_node = QtCore.Signal(object, str, dict) to object.
moved_nodes = QtCore.Signal(object) insert_node = QtCore.Signal(object, str, object)
you can keep it as one of tasks for your next version.