Logo FluentUI

SpinBox QML Type

A styled numeric spin box with increment and decrement controls. More...

Import Statement: import FluentUI 1.0

Properties

Detailed Description

SpinBox allows the user to select a numeric value by either typing directly into the text field or using the up and down buttons to increment and decrement the value within a specified range.

Property Documentation

editable : bool

Whether the text field of the spin box is editable. When true, the user can type a value directly. When false, the value can only be changed via the buttons or keyboard arrows.

font : font

The font used for the spin box text.

from : real

The minimum value of the spin box range. Defaults to 0.0.

stepSize : real

The amount by which the value is incremented or decremented when the user clicks the up or down buttons. Defaults to 1.0.

textFromValue : var

A callback function that converts the numeric value to a string for display. Can be used to customize the formatting, such as adding units or decimal places.

to : real

The maximum value of the spin box range. Defaults to 99.0.

value : real

The current value of the spin box, constrained between from and to.