QT学习之QString和QByteArray转换

    
QString s;
QByteArray data(s.toUtf8());

client->write(data);

转载于:https://www.cnblogs.com/qixianyu/p/6894576.html

你可能感兴趣的:(QT学习之QString和QByteArray转换)