#include <QBitArray>

QBitArray charToBitArray(char bits)
{
    QBitArray array(8);
    return array.fromBits(&bits, 8);
}

 

+ Recent posts