PDA

View Full Version : QPlainTextEdit display large plain text



ArkKup
13th March 2013, 17:19
Hi,

In my application I take some data from a file, process it using QtConcurrent to a text format and at the end of QtConcurrent emit append signal to QPlainTextEdit.
The problem is that the MainWindow becomes unresponsive, freezes when there is more than e.g. 20.000 lines. I have try to split the text into smaller chunks or append 1 line at a time but that did not help.

Can anyone recommend me some way how can I avoid freezing of MainWindow in this situation ?
Thanks in advance.

wysota
13th March 2013, 21:58
Use QTextCursor interface and make sure you manipulate the document from the main thread.