QString与std::string相互转换

std::string content;
QString str = QString::fromUtf8( content.data(), content.size() );
content = str.toStdString();

你可能感兴趣的:(Qt)