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. QFileDialog and network resources
Forum Updated to NodeBB v4.3 + New Features

QFileDialog and network resources

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 456 Views 2 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    I'm having the same issue as reported here:
    https://forum.qt.io/topic/7782/qfiledialog-and-file-from-a-network/3

    Since its now very old, is there an update to the QFileDialog to enable the user to access network locations?

    I have:

    mpfileDlg = new QFileDialog(this, "Select File");
    mpfileDlg->setFileMode(QFileDialog::ExistingFile);
    mpfileDlg->setLabelText(QFileDialog::Accept, "Select");
    

    The only locations available when launched are "My Computer" and my user folder.

    Kind Regards,
    Sy

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      without investigating, I'd doubt it. network locations is a nebulous term and is very platform specific. Since Qt is meant to be platform neutral, it doesnt make sense to support a windoze specific file access mechanism thru smb/cifs.

      About the most I'd expect from QFileDialog would be local filesystems, those mapped using the NFS protocol, and maybe windoze network drives that are mapped with the "net use" command. Network neighorhood or automatically mounting or linking to adhoc network resources seems doubtful.

      If you meet the AI on the road, kill it.

      SPlattenS 1 Reply Last reply
      0
      • Kent-DorfmanK Kent-Dorfman

        without investigating, I'd doubt it. network locations is a nebulous term and is very platform specific. Since Qt is meant to be platform neutral, it doesnt make sense to support a windoze specific file access mechanism thru smb/cifs.

        About the most I'd expect from QFileDialog would be local filesystems, those mapped using the NFS protocol, and maybe windoze network drives that are mapped with the "net use" command. Network neighorhood or automatically mounting or linking to adhoc network resources seems doubtful.

        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3

        @Kent-Dorfman , thank you, I've noticed that when I use QFileDialog::getExistingDirectory which I use elsewhere, this does include all the locations that are missing from the instance created with QFileDialog, sorry I missed the way I an invoking the original is just with show.

        Kind Regards,
        Sy

        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