Re: Undo/Redo Functionality
No, there is no alternative which is built into graphics view. In theory you could be cloning all items in the scene but that's probably more work than implementing commands for all your operations.
Re: Undo/Redo Functionality
Quote:
Originally Posted by
Gurjot
Now I want to implement undo/redo functionality to it. I have read that I can use Undo Framework(QUndoCommand, QUndoStack, etc.) for that but then I'd have to make use of command objects, which restricts my implementation to commands only.
What do you mean with "restricts my implementation to commands only"?
A command in the context of undo/redo is just an interface for a state change that can be applied and reverted.
What kind of operation that does not change the state of the application would you want to undo?
Cheers,
_