I'd like to use QBitArray to store raster data that I have in files. However, the class doesn't seem to have the means to initialize or fill itself from a pre-existing buffer. Am I missing something here?

Internally, QBitArray uses a private member of class QByteArray. QByteArray has both a deep-copy initializer and a member function that takes a pointer to a pre-existing buffer (that the QByteArray can then access). However, QBitArray doesn't appear to expose its QByteArray.