Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92906

Unbuffered QFile buffers when opened using FILE* handle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.3, 6.1.0 FF
    • Core: I/O
    • None
    • Linux/X11

      When a QFile is opened using QFile::open(FILE* stream, ... | QIODevice::Unbuffered), there is still some buffering happening in the stlib fwrite(..., stream).

      When the QFile is used directly, this can be somewhat mitigated by calling QFile::flush, but when it is passed on as a QIODevice this is only possible by q_object_cast'ing it to QFile.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            bruns Stefan BrĂ¼ns
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes