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

[Reg 6.2->6.3] QML FileDialog lost ability to set initial filename

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 6.3.0
    • Quick: Dialogs
    • None
    • All

      Using FileDialog with SaveFile:

      with Qt 6.2, it was possible to set `currentFile` property to a default filename before calling .open() and it would set that filename as initial in the opened dialog.

      In Qt 6.3, currentFile was deprecated and the alternative `selectedFile` is read-only.

      Not only it is read-only, but the function call to actually set the filename was removed here: https://github.com/qt/qtdeclarative/commit/13399bd54d084ed837ec061ca9315dbd173f3b48#diff-d64ac4854b6856e210361095c9d3abce9f15a12bcaf182b0f26efcc9a130773cL251-L255

      Please bring this functionality back.

       

       

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

            mitch_curtis Mitch Curtis
            mechan Adrian Eddy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes