In short here is the code (qt5.9,wingw32 win10 debug32):
QBitArray array; array.resize(32); //... //array in hex: 0xaabbccdd char* data = array.data_ptr()->d