QString test Тест QByteArray ba ba append test QString result ba toBas

1
2
3
4
5
6
QString test = "Тест";
QByteArray ba;
ba.append(test);
QString result = ba.toBase64().data();
REQUIRE( result == "0KLQtdGB0YI=" );