pnikolov
2nd July 2008, 22:37
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")
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")
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!
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")
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")
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!