Wondering about something in QString...
const char* c = "1234";
QString qs = QString::fromUtf8(c,4); //QString is utf16
qs = QString::fromUtf8(c,4);
// does this call allocate 8 bytes for the conversion again? #QtDev
@folkerschamel kind of. I wondered if there is a way in Qt to reuse the allocated buffer in the QString, if it would fit the new size. Hence avoiding an allocation. But seems not to be easily achievable.