关于QString转化为string的函数的3种方法:
QString SceneName_Satellite = "我的场景";
1、QByteArray byteArray = SceneName_Satellite .toUtf8();
2、string scene_name= SceneName_Satellite.toStdString();
3、QByteArray cdata = SceneName_Satellite.toLocal8Bit();
std::string name_scene(cdata.constData(), cdata.size());