Reputation: 171
Is it possible to open QFileDialog in native mode without using the getOpenFilename static method?
Background, in case someone has a different approach for me:
PyQT4 QFileDialog provides the static method QFileDialog.getOpenFileName which is really handy and works well with one exception for me. I am attempting to access a large file on a sharepoint share it fails when I click open. This is because the WebDAV limit is breached when the file chooser attempts to open the file. I don't want the file chooser to open the file, I just want it to return the file name which I believe it will do if I set the mode to AnyFile.
For various reasons:
Upvotes: 0
Views: 115
Reputation: 120718
No, it's not possible: QFileDialog
is the constructor for the built-in Qt file-dialog.
If using getSaveFileName
avoids the access problems, you can try setting the DontConfirmOverwrite option to get rid of the warning message.
Upvotes: 1