[PyKDE] Re: Savefile dialog (QFileDialog.getSaveFileName).

Lukáš Lalinský lalinsky at gmail.com
Wed Aug 23 09:53:06 BST 2006


kakada wrote:
> your solution is detecting the filename if it exist or not,  but not the
> button (Save or Cancel).
> Because if your filename isEmpty, either do you click OK nor Cancel;as
> the result, you always get "No file selected"

I believe the function doesn't let you to click OK with an empty file name.

http://doc.trolltech.com/4.1/qfiledialog.html#getOpenFileName

"If the user presses Cancel, it returns a null string."

-Lukáš




More information about the PyQt mailing list