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

QFileDialog APIs not well suited for future

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15
    • None
    • WebAssembly

    Description

      The APIs:
      QFileDialog::saveFileContent
      QFileDialog::getOpenFileContent

      are not well suited for future improvements as they expect a QByteArray instead of a QIODevice. This makes it hard to support transfering large files in the future. I'm not sure whether it would currently be possible to do so, but IMHO handling this as QIODevice would make this future proof, even if the WebAssembly APIs only allow byte arrays here.

      Imagine you wan to upload or download a video. This might not fit into memory and will probably lead to a crash with this API.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            alexj Alexander Jährling
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes