How to append text to QPlainTextEdit without adding newline, and keep scroll at the bottom?

I’ll just quote what I found here: http://www.jcjc-dev.com/2013/03/qt-48-appending-text-to-qtextedit.html We just need to move the cursor to the end of the contents in the QTextEdit and use insertPlainText. In my code, it looks like this: myTextEdit->moveCursor (QTextCursor::End); myTextEdit->insertPlainText (myString); myTextEdit->moveCursor (QTextCursor::End); As simple as that. If your application needs to keep the cursor where it was … Read more

QTextEdit vs QPlainTextEdit

From Qt’s documentation: QPlainTextEdit is an advanced viewer/editor supporting plain text. It is optimized to handle large documents and to respond quickly to user input. QPlainText uses very much the same technology and concepts as QTextEdit, but is optimized for plain text handling. QPlainTextEdit works on paragraphs and characters. A paragraph is a formatted string … Read more