How are you writing the data to the file (i.e. in what format)? Are you using QDataStream?