Qt QString 与 const char* 类型的转换 QString DATA; std::string str = DATA.toStdString(); const char* ch = str.c_str();