Hi to all!

I have to show content of huge Text file (about 70 MB and 100000 lines).

I tried with QTextEdit and QTextEdit::setPlainText but it's very slow.
Also iterating the Text File and appending line like
Qt Code:
  1. ...
  2. QFile file(fileName);
  3. file.open(QIODevice::ReadOnly | QIODevice::Text);
  4.  
  5. while(!file.atEnd())
  6. {
  7. textEdit->append(file.readLine());
  8. }
  9. file.close();
  10. ...
To copy to clipboard, switch view to plain text mode 

The file contents are truncated in textEdit.

Help please