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

XCB on Unity using Gtk 2 theme plugin: QFileDialog::getSaveFileName doesn't set initial selected file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.3.2
    • 5.3.0, 5.3.1
    • None
    • Ubuntu 13.10

      If you pass a file path to the 'dir' argument of the function QFileDialog::getSaveFileName but the file doesn't exists (e.g. /home/<user>/newFile.txt), then the initial selected file name is not set.

      I checked and the problem is only reproducible using the gtk2 plugin.

      To reproduce it you can modify the standarddialogs example and change line dialog.cpp:422 so that you pass to the function an file path that doesn't exist.

      With version before 5.3.0 it was working correctly.
      The file is only reproducible with the gtk2 plugin and not with the default Qt dialog.

        For Gerrit Dashboard: QTBUG-40573
        # Subject Branch Project Status CR V

            srutledg Shawn Rutledge
            spedrazzi Stefania Pedrazzi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes