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

QFileDialog::getOpenFileName initial directory is ignored when using native Gtk file requester

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.9, 6.5.0
    • Xubuntu 22.10
    • Linux/X11

    Description

      When calling getOpenFileName and specifying an initial directory, the supplied directory is ignored by the Gtk native wrapper. The native Gtk file requester opens on "recent files" instead. Gtk file chooser does have an API to set the initial directory, but apparently it is not being used here. Specifying DontUseNativeDialog in the options causes the initial directory to be used, but forces the user of non-native file requesters.

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            ali1234 Alistair Buxton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes