FormFileDelegate QML Type
A Form delegate that let the user select a file. More...
Import Statement: | import org.kde.kirigamiaddons.formcard |
Inherits: |
Properties
- acceptLabel : string
- currentFolder : url
- defaultSuffix : string
- fileMode : enumeration
- label : string
- nameFilters : string
- options : flags
- rejectLabel : string
- selectedFile : url
- selectedFiles : url
- selectedNameFilter : var
Signals
- accepted()
Detailed Description
FormCard.FormHeader { title: "Information" } FormCard.FormCard { FormCard.FormFileDelegate { label: "Important document" currentFolder: StandardPaths.standardLocations(StandardPaths.DocumentsLocation)[0] } }
Property Documentation
acceptLabel : string |
The acceptLabel of the file dialog.
currentFolder : url |
The currentFolder of the file dialog.
defaultSuffix : string |
The defaultSuffix of the file dialog.
fileMode : enumeration |
The fileMode of the file dialog.
label : string |
A label containing primary text that appears next to the selected file or folder name.
nameFilters : string |
The nameFilters of the file dialog.
options : flags |
The options of the file dialog.
rejectLabel : string |
The rejectLabel of the file dialog.
selectedFile : url |
The selectedFile of the file dialog.
selectedFiles : url |
The selectedFiles of the file dialog.
Note: In case, {FileDialog::OpenFiles} is set, only the first url will be displayed.
selectedNameFilter : var |
The selectedNameFilter of the file dialog.
Signal Documentation
accepted() |
This signal is emitted when a valid file is selected
Note: The corresponding handler is onAccepted
.