Right,
Sorry About that, havent used QT3 in a while or QT4, I'm getting rusty
in QT3 QListView you need to reimplement compare()
see this thread
Right,
Sorry About that, havent used QT3 in a while or QT4, I'm getting rusty
in QT3 QListView you need to reimplement compare()
see this thread
"Power, The only Thing Better than Toast" -- Blitzen The Evil Reindeer
I've reimplemented compare in this way:
Qt Code:
int KMListViewItem::compare(QListViewItem * i, int col, bool ascending) const { qDebug("compare()"); Q_UNUSED(i); Q_UNUSED(col); Q_UNUSED(ascending); return 0; }To copy to clipboard, switch view to plain text mode
It should work but it doesn't (items are moved). I think the only solution is to use setSorting(-1) and then use QHeader's setSortIndicator.
Try implementing a real compare function. This one is not valid.
Bookmarks