PDA

View Full Version : Column with numbers



ederbs
29th November 2006, 21:50
Hello,

I am with the following problem:

In the QTable, QDataTable and QListView when we order to command a column that this filled with numbers, it command as if he was string is there thus: 1, 5, 6, 201, 20, 40, 500... and thus goes.

wysota
29th November 2006, 22:03
Reimplement QListViewItem::compare() (or simmilar) so that it sorts the column according to numerical values.