I use Qt 4.5also C++in Windows XP.
Basically I will have a user interface in which the user enters some data. It can change and change the values available in the user interface. The user interface will contain basic Qt interface elements, such as QLineEdit, QTableWidgetetc.,
So, if the user presses the button Undo(or Ctrl+Z), the previous value should be stored in the corresponding user interface element.
Say, if there is text QLineEditwith the text 25. Now the user changes the value 30. Now, by clicking "Cancel", you need to save the older value 25.
Like the undo feature, which is commonly available in many applications. Is there any way to do this?
source
share