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

On macos High Sierra 10.13 the QFileDialog stucks on the screen unresponsive after the file is choosen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P1: Critical P1: Critical
    • None
    • 5.11.1
    • None
    • macOS

      I use a QFileDialog to let the user to choose a file, after the file is choosen with a double click or clicking on the open button the dialog stucks on the screen and is unresponsive. The only way to make the dialog to disappear is to minimize the main window and restore it.

      The code I'm using is as follow:

       

      QFileDialog dialog(this); 
      dialog.setWindowTitle("Title"); 
      dialog.setFileMode(QFileDialog::AnyFile); 
      dialog.setNameFilter(filter); 
      dialog.setViewMode(QFileDialog::Detail);
      if (dialog.exec()) 
      { 
                QStringList files = dialog.selectedFiles();
                .......
      }

      I tried to use also the static form

       

      QFileDialog::getOpenFileNames(this, "Title", filename, filter, &_lastFileFilter);
      

      with the same result

       

      I'm building my application with QTCreator 4.7.0 Based on Qt 5.11.1 (Clang 8.0 (Apple), 64 bit)

       

      Thanks in advance

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            marco.beninca71 Marco Beninca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes