Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QDoubleSpinBox

An input widget which allows the user to set a floating point or integer value by incrementing and decrementing it. Qt documentation: QDoubleSpinBox

Hierarchy

Index

Constructors

constructor

Properties

decimals

decimals: number

This property holds the precision of the spin box, in decimals.

Sets how many decimals the spinbox will use for displaying and interpreting doubles. Specify 0 for integer values.

enabled

enabled: boolean

If false, the widget cannot be interacted with. Qt documentation: QWidget.enabled

maximum

maximum: number

This property holds the maximum value of the spin box.

minimum

minimum: number

This property holds the minimum value of the spin box.

minimumHeight

minimumHeight: number

You can use this property to prevent the widget from being resized to a height below this amount.

minimumWidth

minimumWidth: number

You can use this property to prevent the widget from being resized to a width below this amount.

prefix

prefix: string

This property holds the spin box's prefix.

The prefix is prepended to the start of the displayed value. Typical use is to display a unit of measurement or a currency symbol.

singleStep

singleStep: number

This property holds the step value.

styleSheet

styleSheet: string

Set this property to override the style sheet for this widget.

See https://doc.qt.io/qt-6/stylesheet.html and https://doc.qt.io/qt-6/stylesheet-examples.html for more information.

suffix

suffix: string

This property holds the suffix of the spin box.

The suffix is appended to the end of the displayed value. Typical use is to display a unit of measurement or a currency symbol.

toolTip

toolTip: string

The toolTip displayed when the user mouses over this widget

value

value: number

This property holds the value of the spin box.

valueChanged

valueChanged: Signal<number>

Signal emitted when the value in the slider is changed. In Qt 5 builds, the value passed as a argument to functions connected to this signal is of type string, and will contain prefix and suffix, if any are set. In Qt 6 it is of number type.

For compatibility between Qt 5 and 6, It's recommended to use the value property rather than using the parameter passed to your signal handler.

visible

visible: boolean

Controls whether this widget is visible. When toggling this property, the dialog layout will automatically adjust itself based on the visible widgets. Qt documentation: QWidget.visible;

Generated using TypeDoc