unsigned char x[] = {0x7E,0x00,0x00,0x0F };
I want to push it to QByteArray but the QByteArray when finds '\0' stops copying.
Which Qt version are you using? 4.7 has QByteArray(const char*, size)
which should work and QByteArray::fromRawData(const char*, int size)
which also should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With