CoverPlaceholder QML Type
Provides template cover content for a very simple application cover More...
Import Statement: | import Sailfish.Silica 1.0 |
Properties
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
Scales the icon to comfortably fit the layout. The property is off by default, and the icon is drawn in it's original size.
The icon to display.
If this is a relative URL, it is located relative to the QML file that defines the cover.