Reputation: 5073
I am learning to use Qt for my application development & I am pretty successfull in developing my Application. Now I want to implement Undo Redo Functionality for my Application. The doc for this topic has little information. I have even tried understanding from the 2 examples in the SDK. But I am having a tough time understanding how it works. Can somebody please take the trouble of explaining me how to implement it? There are various state's in my application for which I want to provide this functionality. So can the explaination be from the general point of view? If there are already articles on the internet explaining the same then please notify me about them. That would be very helpful. Thank You.
Upvotes: 6
Views: 3818
Reputation: 1672
There are 2 core classes: QUndoCommand and QUndoStack;
What you need to do is:
That's it.
Upvotes: 9