Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. FileDialog causes long startup hang
Forum Update on Monday, May 27th 2025

FileDialog causes long startup hang

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlfiledialoghang
1 Posts 1 Posters 419 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pderocco
    wrote on last edited by
    #1

    This has been a known issue: see https://bugreports.qt.io/browse/QTBUG-46477. I think what I'm seeing is the same bug, but I'm not sure. When I added a FileDialog to my application, running on Win7 using Qt 5.12.2 (and now 5.13.0), it suddenly began hanging on startup, before the main window ever appeared. Once, I happened to leave it in that state, and was surprised when the window finally appeared after more than a minute, which prompted some Googling, which led to the above bug report. It seems to have something to do with there being drive letters mapped to network drives on machines that aren't online. However, the program sometimes starts quickly, even though I know there is at least one mapped drive that is offline.

    I don't see any way to deal with this situation. You can read my comment at the end of that bug report, about what I think the issues are. But I just need a workaround. How do I use a FileDialog in QML, to pop up the native Windows file dialog box, without any danger that it will do something that prevents the main window from appearing for minutes?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved