Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
So, how to display BIG text file like running log files by Qt ?
cyberpunker last edited by aha_1980
Both QTextEdit and QPlainTextEdit assumpt large memory and do not release , that can't be acceptable .
JonB last edited by JonB
If I were you I would stick to talking about/resolving your memory issues in the original thread, not re-start that here.
For your question here: if you have a big file then you might like to implement a "paging" mechanism. Only read a certain amount from the file to display in a
QTextEdit. React to "scroll down" event to read more in only when necessary. That's what lots of apps would do. You could also dispose of the earlier stuff too, react to "scroll up" by rereading too, though that's a touch harder.
cyberpunker last edited by