Hi all,<br>Here is my little patch (sorry, a did not use any diff program, as changes are so small)<br>in UI/Browser.py (line 125) replace the _resizeColumns method with:<br><br>def _resizeColumns(self, index):<br>&nbsp; try:<br>
&nbsp;&nbsp;&nbsp; z = self.__cache_size<br>&nbsp; except:<br>&nbsp;&nbsp;&nbsp; self.__cache_size = 160 # default width for me<br><br>&nbsp; w = self.sizeHintForColumn(0)<br>&nbsp; if w == -1:<br>&nbsp;&nbsp;&nbsp; return<br>&nbsp; if abs(self.__cache_size-w) &gt; 40: #<br>&nbsp; &nbsp; self.header
().resizeSection(0, w)<br>&nbsp; &nbsp; self.__cache_size = w<br><br>Yes, I know, it is ugly, but works for me :)<br><br>But the problem seems to be a bit more complicated, as I found that the <br>ResizeSections(QHeaderView.ResizeToContents
) is a fairly large and <br>time consuming procedure, at least in Qt4.3.1, see below<br><br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Andreas wrote:<br>Do you have numbers </blockquote><div><br>I did some time comparisons when using different libraries / distros on same machine<br>AMD Sempron 3400+ 1.8GHz<br><br>
the result (browsing middle size project - about 20 subfolders):<br>- When using Zenwalk -march=i486 -mtune=i686, QT4.3.1 PyQt4 - latest-devel, QScintilla2 - latest-devel, eric4 - latest-devel, sip - latest-devel <br>expanding a branch - up to 
1.5s<br><br>- when using the same library as abowe, but eric4 has been patched <br>expanding a branch - no more 1s, actualy varying from 0.2 to 0.8s<br><br>- When using Linuxmint (Ubuntu Feisty)&nbsp; QT4 2.3, PyQt4.1, QScintilla2 - latest-devel, eric4 - latest-devel, no patch for eric
<br>expanding a branch - no more 0.3sec and I&#39;m hapy<br><br> </div>So, it seems there is something wrong in QT4 library itself.<br>I&#39;m still working to find out the differences between two ones;<br><br><br>Regards
<br>Cvetoslav Ludmiloff<br></div>