The files are buffered, executing a write
doesn't necessarily mean that the data will end up on the disk. To get all of the data written so far into the file, you need to do any of the following:
flush()
the file, orclose()
the file, or- destroy the
QFile
instance (here by deletingfd
).