Quote Originally Posted by Gurjot View Post
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,
_