I\'m beginning with Qt and am stuck with a problem supposedly for quite a long time now. I\'m sure it\'s just something I don\'t see in C++. Anyway, please
QFile has write method which accepts arbitrary array of bytes. You can try something like this:
fileheader fh = { ...... };
QFile f("nanga.dat");
if(f.open(QIODevice::ReadWrite))
f.write(reinterpret_cast(&fh), sizeof(fh));
But remember that in general, it's not a good idea to store any data this way.