[Qt-interest] QListWidget increasingly slow
Bob Hood
bhood2 at comcast.net
Wed Nov 11 17:40:01 CET 2009
André Somers wrote:
>
> Just wanted to point out other options using the item views you were
> using to start with:
>
> · If your lines are all the same height, use
> setUniformRowHeights (or something like that) to true
>
> · Buffer your updates, so you only update up to, say, 20 times
> per second. Then do the updates in batches instead of one by one.
>
>
>
Thanks for the response, André. I have implemented Josi's suggestion of
using the QTextEdit as an alternative, and I have done enough tweaking
to the solution to get it to look almost exactly like the QListWidget
(including using the same font and metrics) so that the difference is
hardly noticeable.
Except, of course, that adding 3,000+ lines in real time doesn't have
any perceivable performance penalty. :)
I learn something new with respect to Qt, so thanks again to everybody
for their feedback on this.
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/20091111/709a620c/attachment.html
More information about the Qt-interest-old
mailing list