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

QFileDialog let the application crash/hang on Windows11.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.15.18, 5.15.19
    • None
    • Windows 11 English
    • Windows

      On Windows11 QFileDialog let the application crash/hang.

      Especially if it is used with a dialog/other widget than from main application.

      Occasionally it happens also when called from MainWindow.

       

      Here are sample calls:

      QString path = QFileDialog::getExistingDirectory(this, tr("Select folder"), QDir::currentPath());

      QString fileName = QFileDialog::getOpenFileName(this, tr("Open file"), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
                                                          tr("License (*.lic)"));

       

      Workarround: Set QFileDialog::DontUseNativeDialog

      But ofcourse the resulting dialog breaks the user experience  ....

        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
            lacunasolutions Alexander Demmler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes