This is the interface for your standard operating system modal file dialogs to open files, save files and select directories.
Dialog has functions built on top of FileDialog that may be more convenient to use. However, selecting a directory is only possible with FileDialog.
Create and display a dialog.
okFunc |
Handler function evaluated when the user clicks "Open" or "Save". This function receives different arguments depending on the value of |
cancelFunc |
Handler function evaluated when the user clicks "Cancel". Receives no arguments. |
fileMode |
An integer that determines the type of dialog. These values correspond directly to values of QFileDialog::FileMode in the Qt class.
0 or 3 implies that the user can type in a new file name. |
acceptMode |
An integer that determines whether the dialog is for opening or saving files. Note that this doesn't actually open or save a file; you'll need to do that in your These values correspond directly to values of QFileDialog::AcceptMode in the Qt class.
|
stripResult |
A boolean. If
|
path |
A string. The dialog will initially display the contents of this path. The default is the current user's home directory. |
a FileDialog