I've seen a lot o questions around this, but so far none worked for me.
I've tried the 2 most common answers but I get the same error.
being but an unsigned char buf[10];
this,
QByteArray databuf;
databuf = QByteArray::fromRawData(buf, 10);
or this,
QByteArray databuf;
databuf = QByteArray(buf, 10);
got me the same error,
error: invalid conversion from 'unsigned char*' to 'const char*' [-fpermissive]
any advice?
thank you