title: How to append text to QPlainTextEdit without adding newline, and keep scroll at the bottom?
body: <p>I need to append text to <code>QPlainTextEdit</code> without adding a newline to the text, but both methods <code>appendPlainText()</code> and <code>appendHtml()</code> adds actually new paragraph.</p>
  
  <p>I can do that manually with <code>QTextCursor</code>:</p>
  
  <pre><code>QTextCursor text_cursor = QTextCursor(my_plain_text_edit-&gt;document());
  text_cursor.movePosition(QTextCursor::End);
  
  text_cursor.insertText("string to append. ");
  </code></pre>
  
  <p>That works, but I also need to keep scroll at bottom if it was at bottom before append.</p>
  
  <p>I tried to copy logic from Qt's sources, but I stuck on it, because there actually <code>QPlainTextEditPrivate</code> class is used, and I can't find the way to do the same without it: say, I don't see method <code>verticalOffset()</code> in <code>QPlainTextEdit</code>.</p>
  
  <p>Actually, these sources contain many weird (at the first look, at least) things, and I have no idea how to implement this.</p>
  
  <p>Here's the source code of <code>append()</code>: <a href="http://code.qt.io/cgit/qt/qt.git/tree/src/gui/widgets/qplaintextedit.cpp#n2763" rel="noreferrer">http://code.qt.io/cgit/qt/qt.git/tree/src/gui/widgets/qplaintextedit.cpp#n2763</a></p>