Closed crep4ever closed 13 years ago
Je sais qu'en ligne de commande, avec sort, ça dépends des locales de l'utilisateur... il n'y a pas qqch comme ça avec qt ?
je me réponds à moi même : oui
setSortLocaleAware
pour un qSortFilterProxyModel
mais il faut bien subclasser qTableView
Fix sort with special characters. Closed by 77075f211b22da0219022704890e351a4fa91f3b
That's great! Thx for the tip! The setSortLocaleAware
did the trick and no subclassing is required!
See for example "Édith Piaf" artist which is now correctly sorted :)
:-)
The tableview is incorrectly sorted for special characters as they are placed at the end. For example : A,B,C,D,E...Z,É instead of A,B,C,D,E,É...Z
A solution may be to subclass QTableView and reimplement the sorting method.