1. QString->std::string
QString qstr="你好 helloworld *&……%¥#@!";
QByteArray cdata = qstr.toLocal8Bit();
std::string cstr = std::string(cdata);
2. std::string->QString
std::string str="你好 helloworld *&……%¥#@!";
QString::fromLocal8Bit(str.c_str())