title: dynamic loading content to QtextEdit
body: <p>I am writing QT application in C++. </p>
  
  <p>I have big .txt file (over 150k lines). I am loading the content to <code>QVector&lt;QString&gt;</code> like so:</p>
  
  <pre><code>QString line = "";
  QVector&lt;QString&gt; content;
  while (!in.atEnd()) {
          line = in.readLine();
          content.append(line);
      }
  </code></pre>
  
  <p>This is fast enough. The problem starts when I try to display the content in QtextEdit.</p>
  
  <p>Before displaying I have to do some editing/operations. Then goes</p>
  
  <pre><code>for(int i = 0; i &lt; content.size(); i++) {
      ui-&gt;textEdit-&gt;append(content[i]);
  }
  </code></pre>
  
  <p>It takes more than 100 seconds to show whole text and its to much (measured with QElapsedTimer).</p>
  
  <p>So I want to ask, is there any easy way to load more content as the user scrolls down in QtextEdit?
  For Example I will display 5000 lines, and when user scrolled to ~3/4, next 5000 lines is displayed and so on.</p>
  
  <p>I am using vertical scroller build-in to QtextEdit.</p>