A file dialog with native appearance.
More...
Public Slots |
| void | open () |
| | Opens the dialog in accordance with the currently set properties.
|
Signals |
|
void | accepted () |
| | Emitted when the user chooses a file/folder.
|
|
void | rejected () |
| | Emitted when the user closes the dialog without choosing a file/folder.
|
Public Member Functions |
|
list< string > | nameFilters () const |
| | A list of wildcard filters used to filter filenames.
|
Properties |
| string | filePath |
| | The current chosen filepath.
|
| string | folder |
| | The current folder.
|
| bool | selectFolder |
| | Whether the dialog should be used to choose a folder.
|
Detailed Description
A file dialog with native appearance.
The FileDialog component is used to display a native file dialog.
- Examples:
- audio.qml, and screenshot.qml.
Member Function Documentation
| void FileDialog::open |
( |
| ) |
|
|
slot |
Opens the dialog in accordance with the currently set properties.
If a file/folder is chosen, the accepted() signal will be emitted, otherwise the rejected() signal will be emitted.
- See Also
- accepted(), rejected()
Property Documentation
| string FileDialog::filePath |
|
read |
| string FileDialog::folder |
|
readwrite |
The current folder.
The folder can be changed either programatically or by the user.
| bool FileDialog::selectFolder |
|
readwrite |
Whether the dialog should be used to choose a folder.
The default value is false.