[PySide] Qinputdialog

Matthew Woehlke matthew.woehlke at kitware.com
Wed Jul 3 16:53:25 CEST 2013

On 2013-07-03 02:43, Sean Fisk wrote:
> Unfortunately, the QListWidget sorting algorithm sorts
> lexicographically, not numerically.

IIRC it sorts by item data with some 'magic' depending on the data type. 
At least I am pretty sure I've written lists with the built-in sorting 
and gotten numeric sort.

Try instead of setText, setData(Qt.DisplayRole), and make sure the data 
you give is an int and not a string.


More information about the PySide mailing list