Hi, Both QsciScintilla::setText() and QTextEdit::setText() clear the undo/redo history but QsciScintilla::clear() doesn't, while QTextEdit::clear() does. Shouldn't the QScintilla version also clear the undo history for consistency with Qt? Regards, Manuel