//将
QString
转换成
QByteArray
QString str1("123");
QByteArray arr1(str.toUtf8());
//将 QByteArray 转换成 QString
QByteArray arr2("456");
QString str2(arr2);