Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QCheckBox

A check box widget which allows the user to toggle a value on and off.

Qt documentation: QCheckBox

Hierarchy

Index

Constructors

constructor

Properties

checkable

checkable: boolean

This property holds whether the button is checkable.

checked

checked: boolean

This property holds whether the button is checked.

clicked

clicked: Signal<void>

Signal emitted when the button is pressed.

enabled

enabled: boolean

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

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.

stateChanged

stateChanged: Signal<number>

Signal emitted when the state of the checkbox changes.

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.

text

text: string

The text displayed on the surface of the button.

toolTip

toolTip: string

The toolTip displayed when the user mouses over this widget

tristate

tristate: boolean

Whether the checkbox is a tri-state checkbox.

The default is false, to have only two states, checked and unchecked. Setting this to true allows the checkbox to be partially checked.

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