PageIndicator QML Type

Indicates the currently active page. More...

Import Statement: import QtQuick.Controls 2.0
Since: Qt 5.7
Inherits:

Control

Properties

Detailed Description

PageIndicator is used to indicate the currently active page in a container of multiple pages. PageIndicator consists of delegate items that present pages.


  PageIndicator {
      count: 5
      currentIndex: 2
  }

See also SwipeView, Customizing PageIndicator, and Indicator Controls.

Property Documentation

count : int

This property holds the number of pages.


currentIndex : int

This property holds the index of the current page.


delegate : Component

This property holds a delegate that presents a page.

The following properties are available in the context of each delegate:

index : intThe index of the item
pressed : boolWhether the item is pressed

interactive : bool

This property holds whether the control is interactive. An interactive page indicator reacts to presses and automatically changes the current index appropriately.

The default value is false.