Hello!
Please, is there any way to tell QTableView::sortByColumn to use locale-aware sorting? I`m using QSqlTableModel to display table content. I`m from Czech Republic and I need to sort records like this:
Thanks a lot for any suggestions
Hello!
Please, is there any way to tell QTableView::sortByColumn to use locale-aware sorting? I`m using QSqlTableModel to display table content. I`m from Czech Republic and I need to sort records like this:
Thanks a lot for any suggestions
I am sorry for posting question before deeply search in documentation. This problem has very easy solution, otherwise I decided to left there my post with it:
Qt Code:
// set table for model sortProxyModel->setSortLocaleAware(true); sortProxyModel->setSourceModel(model); view->setModel(sortProxyModel);To copy to clipboard, switch view to plain text mode
Bookmarks