FilePickerDialog QML Type

XDG Desktop File Picker More...

Import Statement: import .

Properties

Signals

Detailed Description

Presents a system-level dialog incorporating a file picker.

Depending on configuration, may allow selection of a single file, multiple files, or a directory.

This is the UI for the interactive methods of the org.freedesktop.impl.portal.FileChooser Portal

See also Sailfish::XDP::FileChooserPortal.

Property Documentation

model : FileModel

The model representing the contents of the file system


options : var

*

  • accept_label (s) The label for the accept button. Mnemonic underlines are allowed.
  • modal (b) Whether to make the dialog modal. Default is yes.
  • multiple (b) Whether to allow selection of multiple files. Default is no.
  • directory (b) Whether to select for folders instead of files. Default is to select files.
  • filters (a(sa(us))) A list of serialized file filters. See org.freedesktop.portal.FileChooser.OpenFile for details.
  • current_filter ((sa(us))) Request that this filter be set by default at dialog creation. See org.freedesktop.portal.FileChooser.OpenFile for details.
  • choices (a(ssa(ss)s)) A list of serialized combo boxes. See org.freedesktop.portal.FileChooser.OpenFile for details.
  • current_folder (ay) A suggested folder to open the files from. See org.freedesktop.portal.FileChooser.OpenFile for details.

See also Sailfish::XDP::FileChooserPortal and https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.impl.portal.FileChooser.html.


selectedFile : string

The picked file name will be held here after selection by the user


title : string

The dialog title.


wantDirectory : bool

true if the dialog should allow directories as result.


wantMulti : bool

true if the dialog should allow selecting multiple files/directories.


Signal Documentation

done(bool accepted, string selectedFile)