<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hi everyone,</DIV>
<DIV> </DIV>
<DIV><SPAN class=st>I've got a QTreeView with a custom model which has to handle
several items (say 1 million). I've set the setUniformRowHeights property to
True, so when the tree is set up the scrolling is very fluid. The problem arises
when I try to change the ordering of the items. </SPAN></DIV>
<DIV><SPAN class=st>The test script attacched illustrates the situation I have
to deal with: I use the row_id list to map the items to be shown at a given
index; I do this in order to use my own C-written sorting function to order the
items. Now if you push the “Shuffle” button (which simulates the sorting) you
can see that even if the execution time is fast (0.6 sec on my pc), the tree
requires several seconds to be updated.</SPAN></DIV>
<DIV><SPAN class=st>Can anyone point me out what I am doing wrong? </SPAN></DIV>
<DIV><SPAN class=st></SPAN> </DIV>
<DIV><SPAN class=st>Thanks in advance!</SPAN></DIV></DIV></DIV></BODY></HTML>