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

Unbuffered QFile buffers when opened using FILE* handle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.3, 6.1.0 FF
    • Core: I/O
    • None
    • 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

              thiago Thiago Macieira
              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