PDA

View Full Version : Clearing of data in TextEdit



keshab
14th December 2006, 12:26
I am trying to load and clear 4MB of the data in TextEdit. It takes lot of time... Am thinking of using Buffer but dont know how to use it properly. any alternate suggestion is welcome.

wysota
14th December 2006, 13:29
The only alternative is not to use Qt3's QTextEdit. It's quite slow for big amounts of text.

keshab
15th December 2006, 05:59
The only alternative is not to use Qt3's QTextEdit. It's quite slow for big amounts of text.

I know that sir.. can u suggest me which control should be used or any other mechanism which would be helpful in solving this issue??

wysota
15th December 2006, 11:29
First of all you can try dividing the text into chunks and display only a single chunk (even using a QTextEdit). Alternatively you may try QScintilla, maybe it does a better job (I haven't used it, so I don't know). The best thing to do though would be to switch to Qt4 and use its document approach :)