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

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes