API Documentation

Documentation for developing SailfishOS applications

ScrollDecorator QML Type

Adds horizontal and vertical scroll indicators to a flickable Silica view More...

Import Statement: import Sailfish.Silica 1.0


Detailed Description

The ScrollDecorator type adds horizontal and vertical styled scroll decorators to the edges of a SilicaFlickable, SilicaListView, SilicaGridView or SilicaWebView.

While it is sufficient to declare the ScrollDecorator as a child of a Flickable, for best performance it is recommended that the flickable be specified explicitly.

 SilicaFlickable {
     id: flick
     contentWidth: width * 2
     contentHeight: height * 2

     ScrollDecorator { flickable: flick }

See also HorizontalScrollDecorator and VerticalScrollDecorator.

Property Documentation

flickable : Item

Specifies the SilicaFlickable, SilicaListView, SilicaGridView or SilicaWebView on which the decorators are applied.

If flickable is not supplied then the scroll indicators will be applied to the closest ancestor Flickable.

We use cookies to improve your user experience and to help us to develop our services. By continuing to browse the site, you approve of our use of cookies.