Qt Reference Documentation

QML SectionScroller Element

Provides a functionality for scrolling a long list by one section at a time. More...

This element was introduced in Qt Quick Components 1.0.


Detailed Description

A section scroller is a component that allows the user to scroll through a list by one section at a time. When dragging the scrollbar, the list jumps one section at a time while indicating the current section with a popup. The sections are defined in the list.

 Item {
     anchors.fill: parent

     ListModel {
         id: testModel
         ListElement { name: "A Cat 1"; alphabet: "A" }
         ListElement { name: "A Cat 2"; alphabet: "A" }

     ListView {
         id: list
         anchors.fill: parent
         section.property: "alphabet"

     SectionScroller {
         listView: list

Property Documentation

listView : ListView

The ListView that this section scroller is attached to. The ListView must be divided into sections using its section attached property.

platformInverted : bool


If platformInverted is true, the component is visualized with the inverted style. For more information, see Using Inverted Style with Symbian Components. By default platformInverted is false.

This property group was introduced in Qt Quick Components 1.1.