auto codec = QTextCodec::codecForName("GBK"); QString strNewName = codec->toUnicode(reinterpret_cast<const char*>(struPicCfgV40.sChanName));