title: How to fast append to QTextEdit
body: <p>I have an application that has some sort of log viewer, that needs to be able to render formatted log records that are inserted to it in real time.</p>
  
  <p>I am writing this in Qt and so far I was using <code>QTextEdit</code> for rendering of the text, which was beautified using some html tags and later inserted either with <code>setHtml</code> or <code>insertHtml</code>.</p>
  
  <p>The problem is however, that these functions are insanely CPU intensive and run for ages, hanging whole application.</p>
  
  <p>A similar question was asked here: <a href="https://stackoverflow.com/questions/3120258/qtextedit-inserthtml-is-very-slow">QTextEdit.insertHtml() is very slow</a></p>
  
  <p>Apart it has no really useful answer, other than stating it's really slow, it actually asks a different thing. I don't need to speed up <code>setHtml</code> or <code>insertHtml</code>. I am willing to use entirely different technique if possible.</p>
  
  <p>Is there any mechanism within Qt that would allow for really fast insertions of text? Or maybe even completely different component than <code>QTextEdit</code>?</p>
  
  <p>Is there any way to append new line to <code>QTextEdit</code> which contains rich text (generated in any way) that is really fast?</p>
  
  <p>I also noticed <code>QTextBrowser</code> but it seems to be just an extension of TextEdit, could it be faster?</p>