本人亲测可用 qt5.7+vc2015+win10_64环境
#include <QCollator>
#include <QLocale>
void SHAIXUAN::on_pushButton_paixu_clicked()
{
QLocale cn(QLocale::Chinese);
QCollator collator(cn);
QStringList stringList=ui->plainTextEdit_pending->toPlainText().split("\n");
std::sort(stringList.begin(), stringList.end(), collator);
showJieguo(stringList);
}
排序效果如下图: