PDA

View Full Version : Currently sorted column in QTableView



borges
21st September 2007, 16:21
Hi

i'm using a QtableView with a QSortFilterProxyModel for sorting rows.
how can i know what is the currently sorted column (and in what order)? i can't find anywhere in the docs...

Thanks

jpn
21st September 2007, 16:52
Hi. See QHeaderView::sortIndicatorOrder() and QHeaderView::sortIndicatorSection(). The headers are accessible via QTableView::horizontalHeader() and QTableView::verticalHeader().