PDA

View Full Version : Sorting on the basis of Date and Size



santosh.kumar
21st November 2007, 12:45
Hi
I m using Qt4.2.2.We have one application that contains One TreeWidget ..It display item form the list..I have sort the items accroding to size,Date.

My application donot want ot use the TreeView and any model..
Is there any method to sort by size and date.

How i can use the subclass of QtreeWidget for operator<(const QTreeWidgetItem&)const.

or any other method to sorting....our application doesnot contain any TreeView and Model...
It contains TreeWidget..

wysota
21st November 2007, 12:58
Please don't start multiple threads on the same subject.

Take a look at this:
http://www.qtcentre.org/forum/f-qt-programming-2/t-sorting-column-in-qtreewidget-10180.html

And this is your previous thread containing the answer
http://www.qtcentre.org/forum/f-qt-programming-2/t-how-to-sort-the-treewidget-item-according-to-size-and-date-9744.html