unsigned char* 转qstring

其实很简单的,亲测可用,linux下qt可用


unsigned char* ch;
std::string str = (char*)ch;
QString sstr = QString::fromStdString(str);



你可能感兴趣的:(c++)