QString和std::string互相转换
1.QString转换String string s = qstr.toStdString(); 2.String转换QString QString qstr2 = QString::fromStdString(s);
长风破浪会有时,直挂云帆济沧海!
可通过下方链接找到博主
https://www.cnblogs.com/judes/p/10875138.html
1.QString转换String string s = qstr.toStdString(); 2.String转换QString QString qstr2 = QString::fromStdString(s);