PDA

View Full Version : QAbstractProxyModel lessThan [SOLVED]



killerwookie99
15th September 2008, 18:14
So I have my own lessThan function to sort, but it's only sorting based on the first column. Is there a way to tell which column is attempting to be sorted? Sometimes the documentation assumes you know every aspect of qt, not all of us do! :(

aamer4yu
15th September 2008, 18:41
Did u happen to look at QSortFilterProxyModel::setFilterKeyColumn ??? :)

killerwookie99
15th September 2008, 19:39
I have when I use it and see the output it's always 0...

killerwookie99
15th September 2008, 19:42
Ok by dumb luck I figured out that if you do a left or right .column() it returns the data column it's in. I guess this'll work...