[PyKDE] Custom sorting function for the QListView widget
Troy Melhase
troy at gci.net
Sun Jul 4 00:18:01 BST 2004
On Saturday 03 July 2004 09:20 pm, Fernando Jorge Silveira Filho wrote:
> Below is a simplified code that suffers from the same problem. On the
> other side, I agree that I may be wrong about blaming the interface
> between C++ and Python for degrading the performance in this particular
> case. However, this is just what my intuition (which is wrong no less
> than often :-)) tells me. It seems to me that if the Qt library had
> support for numerical key comparisions within itself the whole process
> would be faster without so many changes between C++ and Python code.
I replied too quickly; the docs say that reimplementing compare() is
preferable and more efficient than key().
More information about the PyQt
mailing list