문제

I'm using qSort in Qt to sort QList containing struct. I noticed that Polish character "Ś" is at the end or beginning of sorted list (depending on order). Is there any string comparison function which places "Ś" next to "S"?

도움이 되었습니까?

해결책

You need to use QString::localeAwareCompare for your comparison function.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top