QTextEdit, html performance

  • Hi. I'm using the QTextEdit to show text as log, in html format.
    The performance is very slow. Is there a way to increase it? I need to append lines using some colors and some text in bold.

  • For highlighting you can use this as an example:

  • Qt Champions 2016

    How many log lines are we talking about ?
    The layout engine is not really optimized for a log viewer widget use case
    as line count is often massive.

    If the only markup you need it bold and color - have you considered writing a custom control
    that understand those 2 tags and do the drawing using painter.

    You could also reuse existing viewers and add "bold" to it

Log in to reply