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

Unbuffered QFile buffers when opened using FILE* handle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.15.3, 6.1.0 FF
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      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.

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes