migel
30th June 2011, 20:25
I need to sort a table by different values that are displayed in the cells.
The QTableView model has wonderful option to do it.
model->setSortRole(Qt::UserRole);
But I do use QTableWidget and don't want to switch to TableView.
What I can use to get it working in TableWidget instead ??
Thanks
The QTableView model has wonderful option to do it.
model->setSortRole(Qt::UserRole);
But I do use QTableWidget and don't want to switch to TableView.
What I can use to get it working in TableWidget instead ??
Thanks