Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QAbstractButton

The abstract base class of Qt.QPushButton and Qt.QCheckBox.

Qt documentation: QAbstractButton

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.

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

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