QFileDialog and network resources
-
I'm having the same issue as reported here:
https://forum.qt.io/topic/7782/qfiledialog-and-file-from-a-network/3Since 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.
-
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.
-
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.
@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.