FormFileDelegate QML Type

A Form delegate that let the user select a file. More...

Import Statement: import org.kde.kirigamiaddons.formcard
Inherits:

AbstractFormDelegate

Properties

Signals

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.


description : string [default: ""]

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.


label : string [required]

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 [read-only]

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.