[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] TableWidget sorting
From:       "Hans-Peter Jansen" <hpj () urpla ! net>
Date:       2010-09-27 20:07:56
Message-ID: 201009272207.56839.hpj () urpla ! net
[Download RAW message or body]

[Hugo, please don't hijack threads, e.g. don't hit reply in a thread, 
better just click on the list email address (hopefully, your webmailer 
supports that)]

On Monday 27 September 2010, 20:07:58 Hugo Léveillé wrote:
> I'd like to sort by number size instead of alpha order. Cause by
> default, for exemple, 9199 will be before 92. I checked or
> Qt.SortOrder but only found Qt.AscendingOrder and
> Qt.DescendingOrder

A model based example is, thanks to David Boddie, available here:

http://diotavelli.net/PyQtWiki/Sorting numbers in columns

Pete
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic