std :: string ke qstring

QString str = QString::fromUtf8(content.c_str());
Krishna Das