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

QFileDialog APIs not well suited for future

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes