Logo FluentUI

Tumbler QML Type

A styled tumbler/picker wheel. More...

Import Statement: import FluentUI 1.0

Properties

Signals

Detailed Description

Tumbler presents a spinning wheel selection control commonly used for selecting values such as dates, times, or list items. Users flick or drag through the wheel to select from a set of options.

Property Documentation

accentColor : var

The accent color used for the currently selected item highlight. Can be a color, string, or Qt.rgba value.

currentIndex : int

The index of the currently selected item in the tumbler.

delegate : Component

The delegate component used to visually represent each item in the tumbler.

font : font

The font used for the tumbler item text.

model : var

The model providing the items to display in the tumbler. Can be a number (indicating the number of items), a ListModel, an array, or any other Qt-compatible model.

visibleItemCount : int

The number of items visible in the tumbler window at any given time. Should be an odd number for a symmetric appearance.

Signal Documentation

currentIndexChanged()

Emitted when the currentIndex changes.

Note: The corresponding handler is onCurrentIndexChanged.