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

QFileDialog::getOpenFileName(): comdlg32.dll "Unspecified error" on double click

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P5: Not important
    • None
    • 5.6.0, 5.7.0, 5.7.1, 5.8.0
    • Windows 10 Pro, 64 bits, x64-based processor.
      MSVC 2015 compiler (tried both 32 and 64 bits).

    Description

      In a dialog opened with QFileDialog::getOpenFileName(), opening a file by double-clicking on it leads to the following warning:

      shell\comdlg32\fileopensave.cpp(14247)\comdlg32.dll!00007FFF47C9EAD8: (caller: 00007FFF47CD0258) ReturnHr(1) tid(1438) 80004005 Unspecified error
          CallContext:[\PickerModalLoop] 
      

      If I just click on a file and press Open, there is no warning.

      I have attached a full sample project, but I guess just this line in any project will do:

          QFileDialog::getOpenFileName(this, tr("Open File"), QString("C:\\"), tr("All Files (*.*)"));
      

      Attachments

        1. qt_test.zip
          2 kB
        2. qtbug56599.zip
          1 kB

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              thomasbd Thomas Brassard
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes