FormFileDelegate QML Type
A Form delegate that let the user select a file. More...
- Import Statement: import org.kde.kirigamiaddons.formcard
- Inherits: AbstractFormDelegate
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.
[default: ""] description : string
A label containing secondary text that appears under the inherited text property.
This provides additional information shown in a faint gray color.
fileMode : enumeration
The fileMode of the file dialog.
[required] 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.
[read-only] 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.