[PyKDE] Custom sorting function for the QListView widget

Troy Melhase troy at gci.net
Sat Jul 3 22:31:01 BST 2004


> It seems clear to me that there is a performance loss caused by the fact
> that the compare() method (which is obviously a bottleneck for the
> sorting routine) is now in the script instead of the binary Qt library.

Hi Fernando,

It's not clear to me, not at least without seeing your code.  Can you post it, 
or post some digest of it?  

> Since customized sorting for ListViews seems like such a common task for
> me, I am wondering whether I did something wrong, or if there is another
> way of doing this within PyQt.

Have you tried re-implementing QListViewItem.key() ?


-- 
Troy Melhase, troy at gci.net
--
It is not as a child that I believe and confess Jesus Christ.  My Hosanna is 
born of a furnace of doubt. - Fyodor Dostoevsky




More information about the PyQt mailing list