[Qt-interest] QListWidget increasingly slow
Bob Hood
bhood2 at comcast.net
Tue Nov 10 20:18:27 CET 2009
Josiah Bryan wrote:
> Have you thought about using a QTextEdit and using html to colorize
> the lines and add icons? Use the QTextCursor interface to append html
> to the document.
>
> Line with icon html:
>
> <div style='background:red;color:white'><img src=':/data/icon.png'>
> Hello World!</div>
>
> Then just set the viewport's scroll bar position to the bottom when
> you add text.
Thanks, Josiah! I'll refactor and give that a try to see if it's any
improvement.
Render me gone, |||
Bob ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
The brain is a wonderful organ; it starts working the moment you get up in
the morning and does not stop until you get to the office. - /Robert Frost/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091110/c667d26f/attachment.html
More information about the Qt-interest-old
mailing list