<html><body bgcolor="#FFFFFF"><div>Are you calling resizeToContents for each item in your table?<br><br>Sent from my iPhone</div><div><br>On May 9, 2009, at 3:28 AM, Edwin Marshall &lt;<a href="mailto:aspidites@inbox.com">aspidites@inbox.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>

I have a QTableView that displays the contents of a model with over 3000 rows, each with 11 columns. I'd like to the original size of these columns to be no larger than the content within them, but setting their resizeMode's to QHeaderView.resizeToContents causes the tremendous slow downs (where originally the data would load in two seconds, using this mode causes the data to be loaded after about a minute and a half). Is there some faster alternative?<br><br>I'm thinking of calculating the width by using the length of the largest item in the column, but that would require me to know how large in pixels each character is. <br><br>Any suggestions?&nbsp; Mean while, I'm going to stare at the Qt documentation for a couple more hours to see if I find something.<br>

<hr size="1px" noshade="" style="clear:both;margin-top:10px;height:1px;">
<div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em">
<span style="font-weight:bold;">Get Free 5GB Email</span> – Check out spam free email with many cool features!<br>
Visit <a href="http://www.inbox.com/email"><a href="http://www.inbox.com/email">http://www.inbox.com/email</a></a> to find out more!</div>


</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>PyQt mailing list &nbsp;&nbsp;&nbsp;<a href="mailto:PyQt@riverbankcomputing.com"><a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a></a></span><br><span><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></span></div></blockquote></body></html>