[Qt-interest] Poor performance of "setBackground()" API in QTableWidgetItem class in Qt 4.5.1

Mark Pereira mark at softjin.com
Thu Jun 11 05:27:18 CEST 2009


Hi,

I have been using Qt 4.3.3 for a while and have recently moved to 
Qt4.5.1. I have noticed that the performance of the "setBackground()" 
API of QTableWidgetItem class has slowed down dramatically.

I have attached a sample piece of code which can be used to reproduce 
this problem. In Qt 4.3.3. it takes around 407msec to complete setting 
the background, while in Qt 4.5.1 it takes 68,567msec for the same task. 
I ran this test on a Intel Core Duo PC (1.8 GHz) with 2 GB RAM.

Any suggestions as to how to improve this performance.

Thanks,
Mark


Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for  the use  of the  individual or entity  to which they  are  addressed. It
may  contain confidential,  proprietary or legally  privileged  information.
If  you  are  not  the  intended recipient please be advised that you have
received  this  message in error and any use is strictly prohibited. Please
immediately  delete it  and all copies of it from your system, destroy any
hard  copies  of  it and  notify  the  sender  by return mail. You must not,
directly or indirectly, use,  disclose,  distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.cc
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090611/e7ad7324/attachment.pl 


More information about the Qt-interest-old mailing list