When initializing a QBitArray using function:
The resulting bit array isn't always properly initialized.
I wrote an example where I have one byte but want to use only 5 bits.
The above code produces the following result:
When in fact it should produce:
This happens always in the last byte of the array, I was able to reproduce this in arrays of several sizes, this example has one byte only for simplicity.