qt::ascendingorder problem
Unsolved
General and Desktop
-
Hello i have a little problem because i want to sort tableview by column and use this code:
ui->tableView->sortByColumn(index,Qt::AscendingOrder);
It's do great job but if cell contains polish letters on first Letter , cell is placed on end tableview.
Someone have idea, how i can repair it ?
-
Hi and welcome to devnet forum
The sorting is based on Latin-1 and the order is given here. That explains probably the ordering you currently see.
As a solution you probably have to use a custom sort filter model. I am suggesting to have a close look to this example and try to run the example. Unfortunately I do have enough experience to help you right away. However, pleasedo not hesitate to raise questions in the forum when you have trouble to understand.