API Documentation

Documentation for developing SailfishOS applications

SlideshowView QML Type

A view for flicking through a series of items More...

Import Statement: import Sailfish.Silica 1.0


Detailed Description

The SlideshowView type provides a view for flicking through a series of items.

View navigation is cyclic, such that flicking forwards past the last item will continue on to the first item, and flicking backwards past the first item will move to the last item.

Here is a simple slideshow view:

 import QtQuick 2.2
 import Sailfish.Silica 1.0

 SlideshowView {
     id: view
     width: 480
     height: 200
     itemWidth: width / 2

     model: 5
     delegate: Rectangle {
         width: view.itemWidth
         height: view.height
         border.width: 1

         Text {
             anchors.centerIn: parent
             text: "item " + index

Property Documentation

itemHeight : real

The height of each item in the view.

itemWidth : real

The width of each item in the view.

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.