Logo FluentUI

SegmentedControl QML Type

A mutually exclusive segmented button group. More...

Import Statement: import FluentUI.Controls 1.0

Properties

Signals

Detailed Description

SegmentedControl displays a horizontal row of SegmentedButton items where only one button can be selected at a time. It is useful for switching between related views or filtering options.

Property Documentation

currentIndex : int

The index of the currently selected (checked) button.

delegate : Component

The delegate component used to render each button in the control.

model : var

The model providing data for the segmented buttons. This can be a list of strings or a more complex model with text, icon, and other roles.

Signal Documentation

void currentIndexChanged()

Emitted when the currentIndex property changes, either through user interaction or programmatic assignment.

Note: The corresponding handler is onCurrentIndexChanged.