It's not really a simple task. 

Everytime you add text, it has to be relayout. That takes a considerable amount 
of time. 

The simplifying observation you could make is that these lines are always 
appended at postion 0 of the line. Meaning a relayout is not necessary. A List 
view might be better.
Then the issue is you might want the list view to wrap, rather than show 
horizontal scrollbars. Or maybe not.




________________________________
 From: Jason Dictos <[email protected]>
To: "[email protected]" <[email protected]> 
Sent: Wednesday, April 25, 2012 12:00 PM
Subject: [Interest] QTextEdit performance
 

I’m trying to create a view into a rapidly changing log file. I am appending 
lines to QTextEdit, and want the scrolling on the screen to be responsive. So 
far I’ve been unable to achieve any reasonable level of performance with this 
simple task. 
 
Is there a better text style widget to use for scrolling log type scenarios?
Is there a trick I need to use to make this perform better?
 
-Jason

---------------------------------- 
'Like' us on Facebook for exclusive content and other resources on all 
Barracuda Networks solutions.
Visit http://barracudanetworks.com/facebook 
  ­­  
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to