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

qt.labs.platform.FileDialog hangs for 10-20 seconds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2, 6.2.0
    • Fix Version/s: None
    • Component/s: Quick: Dialogs
    • Labels:
      None
    • Environment:
    • Platform/s:
      macOS

      Description

      Steps to reproduce:

      1 Click on main window -> file dialog will be opened in folder

      StandardPaths.writableLocation(StandardPaths.PicturesLocation)

      2 Chose any file in network location on other machine(for example network_machine)

      3 Disconnect network_machine from net

      3 Click on main window to open file dialog again

      Expected result: 

      File dialog will be opened at once

       

      Actual result:

      Application hangs and file dialog will be opened during 10 - 20 seconds

      NOTE:
      Debug showed that dialog hangs in openPanel time in qtbase/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm

      method :
      initWithAcceptMode:(const QString &)selectFile options:(SharedPointerFileDialogOptions)options helper:(QCocoaFileDialogHelper *)helper

      line: 
      mOpenPanel = [NSOpenPanel openPanel];

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            evgenpervenenko Evgen Pervenenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes