Sailfish Pickers
API DocumentationFolderPickerPage QML Type
A folder picker page for selecting a file More...
Import Statement: | import Sailfish.Pickers 1.0 |
Properties
- dialogTitle : string
- selectedPath : string
- showSystemFiles : bool
- title : string
Detailed Description
FolderPickerDialog shows all mount points at once
Here is an example usage:
import QtQuick 2.2 import Sailfish.Silica 1.0 import Sailfish.Pickers 1.0 ApplicationWindow { initialPage: Component { Page { id: page property string directoryPath SilicaFlickable { contentHeight: column.height + Theme.paddingLarge*2 anchors.fill: parent VerticalScrollDecorator {} Column { id: column width: parent.width PageHeader { title: "Folder picker example" } ValueButton { anchors.horizontalCenter: parent.horizontalCenter label: "Folder" value: directoryPath ? directoryPath : "None" onClicked: pageStack.push(folderPickerPage) } } } Component { id: folderPickerPage FolderPickerPage { dialogTitle: "Download to" onSelectedPathChanged: page.directoryPath = selectedPath } } } } }
See also ContentPickerPage, DocumentPickerPage, ImagePickerPage, MusicPickerPage, and VideoPickerPage.
Property Documentation
This property holds the title of the dialog. Current selected folder is shown under the title.
By default dialogTitle is empty.
This property holds the path of the selected directory.
By default selectedPath is empty.
Sets whether the user can see root system directory.
By default showSystemFiles is false.