[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QTableWidget: sorting floating point numbers
From: David Boddie <dboddie () trolltech ! com>
Date: 2009-09-24 17:30:09
Message-ID: 200909241930.09927.dboddie () trolltech ! com
[Download RAW message or body]
On Thu Sep 24 15:54:32 BST 2009, Bernard Van Der Stichele wrote:
> I still havn't been able to figure out how to sort numbers in a
> QTableWidget. Can anyone offer any pointers?
I don't think it's possible to do this with a QTableWidget, but it's
certainly possible to apply a proxy model to a model (which could be
a generic QStandardItemModel) and show the result in a QTableView.
I've put some example code here:
http://www.diotavelli.net/PyQtWiki/Sorting%20numbers%20in%20columns
David
_______________________________________________
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