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

Native windows dialogs do not open

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.7.0
    • None
    • OS: Windows Server 2008R2
      Compiler: MSVC 2008 Express/2010 Ultimate
    • 7f338180e88b71e793069e2fbe9a70f3c434e126

    Description

      This started occurring after 4.7.0-tp1. I've noticed it with 2 native dialogs Open Files and Open Folder (the only ones I use). I tried to debug the issue and found that IModalWindow::Show returns HRESULT 0x800704c7, which to my knowledge is ERROR_CANCELLED "The operation was canceled by the user." though I have no idea why. The parent window loses focus, the dialog does not appear and the parent window regains focus.

      IModalWindow::Show is called from qt_win_CID_get_open_file_names and qt_win_CID_get_existing_directory. I use QFileDialog::getOpenFileNames and QFileDialog::getExistingDirectory to open the dialogs.

      Non-native dialogs, opened with the QFileDialog::DontUseNativeDialog flag open and work correctly.

      Attachments

        1. qt-4.7-0fd09af3a05ac88c55fed73c85dc1c5aba68f057-configure-output.txt
          6 kB
          Marek
        2. NativeDlg.zip
          391 kB
          Yuri Osipov
        3. snap1.png
          78 kB
          Yuri Osipov
        4. snap2.png
          75 kB
          Yuri Osipov

        Issue Links

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

          Activity

            People

              dzyubenk Denis Dzyubenko (Inactive)
              aptx Marek
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes