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

QML FileDialog slows down application start-up

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.6.0 RC
    • 5.5.0 Beta
    • Quick: Dialogs
    • None
    • iOS/tvOS/watchOS
    • 4849fd5a81593b09f046073d9cd5be9742d45326

    Description

      If you add "FileDialog {}" in your QML code, the application often spends about three seconds more to start. If you additionally set "folder: shortcuts.pictures", the app will spend about 50 seconds to start if running on a device with ~1000 photos.

      The reason seems to be that FileDialog creates a FolderListModel upon construction that fetches the entry list of the assigned directory and queries each file for it's size etc. This has a huge penalty especially in the photos case, since then it tries to load 1000 photos into memory and ask for their size.

      The solution is probably to do more lazy loading of the qml file dialog until it is actually being used.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              richard Richard Moe Gustavsen
              Votes:
              7 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes