[Qt-interest] QListWidget flickers for 1 to 2 sec when updating the QListWidget
Malyushytsky, Alex
alex at wai.com
Fri Jul 24 01:41:46 CEST 2009
How many items are in QListWidget?
Every time you enter a single QListWidgetItem, it might cause redraw.
If you enter more than 1 item at one time you might want to use setUpdatesEnabled( false)
Example:
setUpdatesEnabled(false);
bigVisualChanges();
setUpdatesEnabled(true);
If it happens even when user scrolling widget, it might be just way too many items and this widget can't handle them fast enough for you platform/graphics card or driver.
Regards,
Alex
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Trinathpujari
Sent: Wednesday, July 22, 2009 10:03 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QListWidget flickers for 1 to 2 sec when updating the QListWidget
Hi,
I am using QListWidget for displaying the contacts in a call history
from a linked list but when listwidget goes to maximum entries and after
it updates the recent contact to the list .
At this time the if the selected contact is the last contact in the
list , then list widget flickers and it goes blank for 1 or 2 secs or
when the user moves his scroll area in the list widget it goes blank.
Please provide me some inputs if anybody knows how to update the
QListWidget without flickering.
Regards
Trinath
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
"Please consider our environment before printing this email."
More information about the Qt-interest-old
mailing list