Sailfish OS
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS
Select Page
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS

Sailfish Pickers

API Documentation
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon

Contents

  • Properties
  • Detailed Description

FolderPickerPage QML Type

A folder picker page for selecting a file More...

Import Statement: import Sailfish.Pickers 1.0
  • List of all members, including inherited members

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

dialogTitle : string

This property holds the title of the dialog. Current selected folder is shown under the title.

By default dialogTitle is empty.


selectedPath : string

This property holds the path of the selected directory.

By default selectedPath is empty.


showSystemFiles : bool

Sets whether the user can see root system directory.

By default showSystemFiles is false.


title : string

This property holds the title of the page.

Defaults to translated "Select location".


  • Legal
  • Contact Us
  • Jolla Mobile Ltd © 2025

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn