Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to open WSL file using QFileDialog::getOpenFileNames
Forum Updated to NodeBB v4.3 + New Features

How to open WSL file using QFileDialog::getOpenFileNames

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 447 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Adeel Asghar
    wrote on 17 Jun 2020, 08:51 last edited by
    #1

    Under newer Windows 10 builds the Windows Subsystem for Linux (WSL) is included into the Windows Explorer. Similar to every file on your local drive you can navigate to your files inside a WSL distribution using \\wsl$.

    I am unable to select a Windows Subsystem for Linux (WSL) file using QFileDialog::getOpenFileNames. The filenames return by the dialog are without \\wsl$.

    Adeel.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 Jun 2020, 19:53 last edited by
      #2

      Hi,

      What version of Qt are you using ?
      From the Windows side ?
      Are you using the native dialog ?

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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Adeel Asghar
        wrote on 18 Jun 2020, 11:20 last edited by
        #3

        I am using Qt version 5.6.0 mingw on Windows and yes I am using native dialog.

        J 1 Reply Last reply 18 Jun 2020, 11:25
        0
        • A Adeel Asghar
          18 Jun 2020, 11:20

          I am using Qt version 5.6.0 mingw on Windows and yes I am using native dialog.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 18 Jun 2020, 11:25 last edited by
          #4

          @Adeel-Asghar Do you have to use such an old Qt version?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Adeel Asghar
            wrote on 18 Jun 2020, 11:32 last edited by
            #5

            Unfortunately yes. We are using msys2 for our project and don't want to upgrade it right now.
            @jsulm do you know if it works with the latest version?

            J 1 Reply Last reply 18 Jun 2020, 11:38
            0
            • A Adeel Asghar
              18 Jun 2020, 11:32

              Unfortunately yes. We are using msys2 for our project and don't want to upgrade it right now.
              @jsulm do you know if it works with the latest version?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 18 Jun 2020, 11:38 last edited by
              #6

              @Adeel-Asghar said in How to open WSL file using QFileDialog::getOpenFileNames:

              do you know if it works with the latest version?

              No, I don't

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              1/6

              17 Jun 2020, 08:51

              • Login

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