Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved QFileDialog::getOpenFileNames crashes when clicking on "Desktop"

    General and Desktop
    2
    5
    1002
    Loading More Posts
    • 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.
    • H
      HornetMaX last edited by

      Hi all,
      I'm on Win 7 64 ultimate, Qt 5.5.1 MSVC 2010. I've just stumbled on this:

      QStringList list = QFileDialog::getOpenFileNames(this, tr("Open runs"), m_openPath,
                                                       QString("Runs info (*.bin)"), 0,
                                                       QFileDialog::DontUseNativeDialog);
      

      When it is executed, on the left part of the window I get 3 "default locations": Desktop, MaX (this is my Username in Windows) and Documents. If I click on Desktop, it crashes.

      Extra info: my Desktop folder is not located in the usual place (C:\Users\MaX\Desktop) but on another drive (D:\Users\MaX\Desktop). However, the same is true for my Documents folder, and this works fine: when I click on Documents in the dialog it goes to D:\Users\MaX\Documents. But when I click on MaX (the user) it goes to C:\Users\MaX instead of D:\Users\MaX. Maybe that's causing troubles ...

      The native dialog however doesn't have the problem.

      1 Reply Last reply Reply Quote 0
      • H
        HornetMaX last edited by HornetMaX

        Additional info: I've found the reason for the crash.
        On my desktop I've a shortcut to a NAS. The NAS is protected with a username/password. If I'm not already logged in on the NAS, the dialog crashes (*) when I click on desktop. If I'm logged in, it works fine. Still a problem though ...

        The other problem stands too: clicking on MaX (the user) it goes to C:\Users\MaX instead of D:\Users\MaX.

        So I seem to have 2 different problems here.

        (*) To be precise, it doesn't crash: it goes into "not responding state" and stays there until I close it (force close).

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          You should take a look at the bug report system to see if it's something known. If not please consider opening a new report with all your findings, detailed setup and a small compilable example that reproduces the problem.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          H 1 Reply Last reply Reply Quote 0
          • H
            HornetMaX @SGaist last edited by HornetMaX

            @SGaist Thanks SGaist. I've just created these:

            https://bugreports.qt.io/browse/QTBUG-49440
            https://bugreports.qt.io/browse/QTBUG-49441

            Hope that helps.

            1 Reply Last reply Reply Quote 0
            • H
              HornetMaX last edited by

              Just for information, this (https://bugreports.qt.io/browse/QTBUG-49441) is likely not a bug, it was going to C: because my HOME was still on C: (even if the desktop, documents & co were on another drive).

              The other problem (NAS-related) stands though.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post