Fastest way to display large QString in a QT window?
-
Hello
Could you advice the fastest way to display a QString in something like a QPlainTextEdit?
Right now i'm just calling setPlainText() , and it's ok for small files bur for large files it can take a second or two, for example a 11mb file with 647k lines takes about 2 seconds while a 20mb file with 152k lines takes about 600ms.
thanks -
You may have a bit more luck with QTextDocument, I think it lazy-loads the data. If not, you'll probably have to manually load the file in chunks.
-