PDA

View Full Version : model.sort(col, Qt::AscendingOrder); does not work.



kaushal_gaurav
18th August 2008, 06:41
Hi,

I am using the function " QSortFilterProxyModel::sort(col, Qt::AscendingOrder) " to sort the model and display the sorted result in a QTableView.

The model is not properly sorted but only some of the items in the column are sorted.

Also set the Enable froperty of table. I have also tried using sortByColumn() of QTableView.

Help.....!!!!

Regards,
Gk

wysota
18th August 2008, 08:18
Could you post a minimal compilable example reproducing the problem?