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

QFileDialog::getSaveFileName doesn't use passed name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • 4.7.1
    • 4.5.3
    • None

    Description

      A few versions ago, QFileDialog::getSaveFileName stopped using the name you suggested to it. This is very annoying in certain applications. I've gotten this bug on windows xp qt 4.5.2 and gentoo kde 4 and maybe kde 3 as well, I don't remember.

      #include <QtGui>

      int main(int argc, char ** argv)
      {
      QApplication app(argc, argv);
      QString fileName = "shouldbeanamehere";
      fileName = QFileDialog::getSaveFileName(0,"Save File", fileName, "*" );
      return 0;
      }

      Attachments

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

        Activity

          People

            menard Alexis Menard (closed Nokia identity) (Inactive)
            peterius Peter Van Bohning
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes