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. [SOLVED] Passing Network file paths from Windows to Mac OSX (and vice-versa)
Forum Update on Monday, May 27th 2025

[SOLVED] Passing Network file paths from Windows to Mac OSX (and vice-versa)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • K Offline
    K Offline
    Korchkidu
    wrote on 27 Mar 2014, 10:36 last edited by
    #1

    Hi,

    I want to send from a client to a server the path to a file located on a NAS. I use QUrl for that. If I use a mapped drive to the network share (S drive for example), the QUrl sent to the server is of the form:
    @"file:///S:/myTestFile.txt"
    @
    And the server has no idea how to open this file on his side.

    So how a Qt client can safely send an Url to a server so that it can access the network file?

    Thanks for any help.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 27 Mar 2014, 10:42 last edited by
      #2

      I don't think there is any good solution here. A mapped drive can be anything, and on Unix/ Mac a share can be mounted in a myriad of ways...

      One way that could work is to try and find the IP of the drive, and send that to the other side. Then, the recipient would have to find that share and where it is mounted, and stitch the URL by itself.

      (Z(:^

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Korchkidu
        wrote on 27 Mar 2014, 10:54 last edited by
        #3

        Ok, thanks. If I avoid using mapped drives, then I send an QUrl with the form file://myPath to the file. On the MAC side, just replacing file: with smb: works. I will see how to implement your solution as it seems more robust.

        Thanks a lot!
        Best regards.

        1 Reply Last reply
        0

        1/3

        27 Mar 2014, 10:36

        • Login

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