[PyKDE] Custom sorting function for the QListView widget

2004-07-03 Thread Fernando Jorge Silveira Filho
Hi folks, I have been programming Qt for a while now, but recently I started using PyQt and now I ran into a problem. I am developing a very simple application that show lots of results from a SQL query onto a QListView. I have chosen doing this on Python since it is such a simple task, but

Re: [PyKDE] Custom sorting function for the QListView widget

2004-07-03 Thread Fernando Jorge Silveira Filho
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

Re: [PyKDE] Custom sorting function for the QListView widget

2004-07-03 Thread Troy Melhase
Do you know how Python delivers its functions to the C++ interface? I mean in this case, would it be justifiable to believe most of the performance hit comes from the fact that the C++ QListView sorting routine has to call a function that is being run on the Python virtual machine a number