Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.15.0
-
None
Description
QByteArray helloWorld = "Hello World"; QVariantList list; list << helloWorld; QJsonArray array = QJsonArray::fromVariantList(list); qDebug().noquote() << "Source" << helloWorld; qDebug().noquote() << "String" << array.first().toString(); qDebug().noquote() << "ByteArray" << array.first().toVariant().toByteArray();
Results:
./Test_5.14.2 Source Hello World String Hello World ByteArray Hello World ./Test_5.15.0 Source Hello World String SGVsbG8gV29ybGQ ByteArray SGVsbG8gV29ybGQ
Attachments
Issue Links
- duplicates
-
QTBUG-84739 Regression with dataloss
-
- Closed
-