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

API Documentation

Documentation for developing SailfishOS applications
  • 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

CoverPlaceholder QML Type

Provides template cover content for a very simple application cover More...

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

Properties

  • forceFit : string
  • icon : Image
  • text : string

Detailed Description

CoverPlaceholder provides a template for a very simple application cover with a label and an image. It is typically presented when more informative content is unavailable, or the application state is to be conveyed with a short text message.

The most commonly used icon on the cover placeholder is the app icon to make the cover easy to recognize.

For example:

 import QtQuick 2.2
 import Sailfish.Silica 1.0

 ApplicationWindow {
     cover: Component {
         CoverBackground {
             CoverPlaceholder {
                 icon.source: "icon.png"
                 text: "My app"
             }
         }
     }
 }

See the Cover and Sailfish Application Features documentation for more information on covers.

Property Documentation

forceFit : string

Scales the icon to comfortably fit the layout. The property is off by default, and the icon is drawn in it's original size.


icon : Image

The icon to display.

If this is a relative URL, it is located relative to the QML file that defines the cover.


text : string

The text to display.


  • Legal
  • Contact Us
  • Jollyboys Ltd © 2024

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn