Hello,
I read the QFileDialog class reference, but I still cannot solve the following problem:
I want to impelement a posibility for the user to save a file. I use Python and PyQt4, but if you have a C++ solution please wirte it...
I use:
QtGui.
QFileDialog.
getSaveFileName(self,
"Save file",
"",
".conf")
QtGui.QFileDialog.getSaveFileName(self, "Save file", "", ".conf")
To copy to clipboard, switch view to plain text mode
But when I press the Save button from the showed Dialog, there is no saved file..
I tried using:
filename
= QtGui.
QFileDialog.
getSaveFileName(self,
"Save file",
"",
".conf")
filename = QtGui.QFileDialog.getSaveFileName(self, "Save file", "", ".conf")
To copy to clipboard, switch view to plain text mode
where filename is previosly opened file or string... but no success
I read somewhere that getSavedFileName() returns the selected filename even if there is no such file (?!?!)
I need your help.
All the best!
Bookmarks