QString与string的相互转换时间:2021-01-31 23:35:171.QString转换String string s = qstr.toStdString(); 2.String转换QString QString qstr2 = QString::fromStdString(s);