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 446 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 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

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

        jsulmJ 1 Reply Last reply
        0
        • A Adeel Asghar

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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 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?

            jsulmJ 1 Reply Last reply
            0
            • A Adeel Asghar

              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?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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

              • Login

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