Qt+MSVC开发中字符串转换及中文乱码问题

168 阅读1分钟

GB2313:

stringQString:

QString::fromLocal8Bit("字符串")

UTF-8:

stringQString:

QString::fromStdString("字符串")