The actual data for QByteArray (in Qt 4.8) can be found in qbytearray.h and looks like this:
struct Data {
QBasicAtomicInt ref;
int alloc, size;
char *data;
char array[1];
};
So a quint64 will use less storage if your data fits into it.