Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert Qstringlist into Qbytearray type under qt?
How to convert Qstringlist into Qbytearray type under qt?
It depends on your purpose. What function should be realized specifically?

If you want to combine into a local string, one method is to combine the QStringList into a QString first, and then call the methods of toAscii (), toLocal8Bit (), toLatin 1 () and toUtf8 () of QString according to the actual encoding format, or use QTextCodec to convert it into the corresponding encoded QByteArray.