QTextEdit gets a performance problem when filling up

QTextEdit [doc.qt.nokia.com] is optimized for working with paragraphs and it is not designed for handling very large paragraphs. When having very long paragraphs you will run into a performance problem at some point, when this will happen depends on the speed of your machine, the font you are using etc. We are not planning to change this design since the users generally split their documents into paragraphs.

A solution to this problem can be to use a QPlainTextEdit [doc.qt.nokia.com] instead of a QTextedit and set the maximum number of blocks using setMaximumBlockCount() [qt.nokia.com].

No comments

Write a comment

Sorry, you must be logged in to post a comment.