How to convert QList<QByteArray> to QString in QT? -


i have qlist<qbytearray> want print out in qtextbrowser. qtextbrowser->append() takes qstring.

despite ton of searching online, have not found way convert data have qstring.

try:

for(int i=0; i<list.size(); ++i){     qstring str(list[i].constdata());     // use string needed } 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -