hi

I m using Qt4.2 on MAc 10.4
I have one application that contains one treeWidget. treeWidget contains three column.
first column contains filename, second column contains size of file, third column contains
creation date of file..

TreeWidget has already a function to sort the item...

treeWidget->sortItems(column, Qt::AscendingOrder);

But it will sort on the basis of Name order from ("AAAA" to "ZZZZ");

But i want to sort the second column according to size of file...so how i will sort the items according to size or date...

Can i do this using making subclass and making override functions sortItems and write
our own function to compare two item to each other...

But i m not clear....

if anybody know this ...help please