Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, July 2007
QTextEdit::clear() & QTextBrowser::clear() very slow


Message 1 in thread

Hi,

I load a 20MB file  as plain text in QTextBrowser, it takes about 1~2
mins for  clear().
It is not acceptable  for interactive tool.

Because I need its  syntaxHighlighter (Although I overwrite it.)
for automatically  highlighting the selected (clicked) words, so I use
QTextEdit or QTextBrowser.

I tried QLabel,  QLabel::clear() is fast, but I don't know how to
highlight text within QLabel  class.

Any  idea?

--
 [ signature omitted ]