title: QFile.write( myStruct ) - how?
body: <p>I'm beginning with Qt and am stuck with a problem <strong>supposedly</strong> for quite a long time now. I'm sure it's just something I don't see in C++. Anyway, please look at the following simple code and point me what am I doing wrong:</p>
  
  <pre><code>typedef struct FILEHEADER {
      char udfSignature[8];
      char fileName[64];
      long fileVersion;
      UNIXTIME fileCreation;
      UNIXTIME lastRebuild;
      FILEPOINTER descriptor;
  } fileheader;
  
  QFile f("nanga.dat");
      if(f.open(QIODevice::ReadWrite));
  
  f.write(fileheader);
  </code></pre>
  
  <p>Qt 5.2.0 trows me the following error message:</p>
  
  <pre><code>C:\sw\udb\udb\main.h:113: error: no matching function for call to
  'QFile::write(FILEHEADER&amp;)'
           file.write(header);
                            ^
  </code></pre>
  
  <p>Any suggestion on how I can write this struct to a <code>QFile</code>?</p>
  
  <p>Thanks</p>