[Qt-interest] Does QWidget::setUpdatesEnabled(false) save time
David Boosalis
david.boosalis at gmail.com
Mon Jun 21 06:01:35 CEST 2010
I sometimes populate a listview or tree view with lots of items. Prior to
the for loop that creates the StandardItems I do a setUpdatesEnabled(false)
and then after the for loop I do a setUpdatesEnabled(true). I recall
starting this methodoloty with Qt3 which relied more on X doing the drawing
and was not double buffered. My question is does this still apply to QT 4
now that it does its own rendering. Further more for widgets that Inherit
from a QScrollArea should the ::setUpdatesEnabled() apply to the top window
or to the QScrollArea::widget().
Do Windows, Mac, and Linux also show the same behavior for this kind of
optimization technique (minimize blits to screen).
The reason I ask is that I have lots of Table Widgets with real time data
feeds and I want to make sure I am minimizing a bunch of screen redraws with
one redraw.
Any thoughts on this is greatly appreciated.
-david
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100620/6c602551/attachment.html
More information about the Qt-interest-old
mailing list