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

QFileDialog::getExistingDirectory() native dialog does not respect caption and default directory (Windows XP)

    XMLWordPrintable

Details

    • fb2a25e7564f4651beb955fd3ecb2e644b16d80d

    Description

      Since I started using Qt 5.0.2 instead of 4.7 (for Windows XP), QFileDialog::getExistingDirectory() does always open with "Desktop/My Documents" as initially selected directory and the caption is always "Browse For Folder",
      even though I am passing different arguments:

      QString directory = QFileDialog::getExistingDirectory(
                             this,
                             "Open Directory",
                             "C:/"
                          );
      

      When I use the non-native Qt-Dialog, all works fine:

      QString directory = QFileDialog::getExistingDirectory(
                             this,
                             "Open Directory",
                             "C:/",
                             QFileDialog::DontUseNativeDialog
                          );
      

      This can be reproduced with the Qt example:
      examples\widgets\dialogs\findfiles

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            ludwick Linus Feiten
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes