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

WASM - Can't choose filename with QFileDialog::saveFileContent()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.15.1
    • None
    • Ubuntu 20.04 / firefox 82.0.3 ; chrome 85.0.4183.121
      Windows 10 /Firefox: 83.0 ; Chrome: 87.0.4280.66 ; Edge: 87.0.664.41
      MacOs High Sierra 10.13.6/ Chrome 86.0.4240.193
      Android 9 / Chrome 86.0.4240.198
    • WebAssembly

      Hello,

       

      I am working on a mainly-QML wasm application, where I have to use QFileDialog::saveFileContent() from c++ since the QML component FileDialog can't access to local storage (sandboxed). This function should open a file dialog which allows the user to choose the name of the file. It works pretty well on desktop target, but the behavior on webassembly target is different: it opens a popup asking to save the file under a non-modifiable random-generated name, as seen below.

      I am not sure if this is intended behavior or if this is a bug. In case this is intended, how can I at least generate the filename myself from the code ?

      This behavior happens on linux/mac/windows/android, see environment section.

      Regards

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            elisabeth Elisabeth Rousset
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes