It appears that QFile when working with a regular file (not a special Linux I/O device file) is random access, meaning that a seek operation has constant-time complexity O(1).
However, I haven't been able to confirm this. In general, when jumping to a specific position in a file (for writing or reading), does std::fstream
and QFile
provide constant-time running time complexity?