QByteArray to QString

前端 未结 7 735
野性不改
野性不改 2020-12-13 18:13

I\'m having issues with QByteArray and QString.

I\'m reading a file and stores its information in a QByteArray. The file is in

相关标签:
7条回答
  • 2020-12-13 19:03

    You can use this QString constructor for conversion from QByteArray to QString:

    QString(const QByteArray &ba)

    QByteArray data;
    QString DataAsString = QString(data);
    
    0 讨论(0)
提交回复
热议问题