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

Native windows dialogs do not open

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes