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

QFile::open(int fd, ...) refers to 'raw' mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.2
    • 5.15.1
    • Documentation
    • None
    • 165bc70bc39a5094a0f931d38066b1f5b585fee8 (qt/qtbase/dev) ce6a0351f568b638b879d1ad692b6a898afdb8b7 (qt/qtbase/5.15)
    • Da Vinci sprint 16

    Description

      https://doc.qt.io/qt-5/qfile.html#open-2

      The QFile that is opened using this function is automatically set to be in raw mode; this means that the file input/output functions are slow. If you run into performance issues, you should try to use one of the other open functions.

      1. IO_Raw is a mode from Qt3
      2. The statement seems to be wrong - the QIODevice is always opened with `mode` unchanged:
        https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/io/qfile.cpp#n1044

      Attachments

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

        Activity

          People

            paulwicking Paul Wicking
            bruns Stefan BrĂ¼ns
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes