QLocale ql; switch (ql.language()) { case QLocale::Chinese: { // 系统语言是中文,可以进行其他操作 } break; default: break; }