In the assistent entry for QTextEdit one can find:
plainText : QString
This property gets and sets the text edit's contents as plain text. Previous contents are removed and undo/redo history is reset when the property is set
But what if I want to revert the action just after I have set text with setPlainText(str) ? It would be reasonable not to clear undo/redo history, since user may want to restore previous text after setPlainText was called. Is there a simple way to go around it?