Note that a bit array is something completely different than a byte array.
The bit array is mainly used for setting flags.


yes, but i got data from socket as bytearray...
with QByteArray.mid(x, 1) i will extract some byte and i need to change specific bits on that byte.

How to do that?