you haven't shared the full implementation of datatype QByteArray but if it were (akin to) std::string we'd need some escape characters:
1 2 3 4 5 6 7 8 9
|
#include <iostream>
#include <string>
int main()
{
std::string id = "\\x98\\x33\\xB5\\x14";
std::cout << id << "\n";
std::cout << id.size() << "\n";
}
|
Last edited on