Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColorButton

A widget which allows the user to select a color. When the color button is clicked, a color picker dialog will pop up.

Hierarchy

Index

Constructors

constructor

Properties

color

color: color

The currently selected color of the button.

colorChanged

colorChanged: Signal<color>

Signal emitted when the color is changed by the user.

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.

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