<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD>
<BODY>
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? 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">
<a href="http://www.inbox.com/earth"><img src="http://my.inbox.com/img/ftrs/earth.jpg" width="100" hight="90" alt="3D Earth Screensaver Preview" align="left" border="0" style="margin-right:15px" /></a>
<br><strong><font color="2086c3">Free 3D Earth Screensaver</font></strong><br>
<nobr>Watch the Earth right on your desktop!</nobr> <nobr>Check it out at <a href="http://www.inbox.com/earth">www.inbox.com/earth</a></nobr></div>
</BODY>
</HTML>