string s;QString t = QString::fromUtf8(s.c_str());
inline std::string QString::toStdString() const{ const QByteArray asc = toAscii(); return std::string(asc.constData(), asc.length()); }
QTextCodec *codec = QTextCodec::codecForName("UTF-8");QTextCodec::setCodecForCStrings(codec);
s = t.utf8().constData();