CheckBox:
Filter:
Classes | GUI > Views

CheckBox : View : QObject : Object

A view that toggles between two states.
Subclasses: QCheckBox

Description

A view that toggles between two states when clicked, displaying or hiding a check mark accordingly.

Class Methods

Inherited class methods

Undocumented class methods

CheckBox.new(parent, bounds, text)

CheckBox.qtClass

Instance Methods

Data

.value

.value = val

Stating which of the two states the view is currently in, false meaning unchecked and true meaning checked. Default to false.

Arguments:

val

A Boolean.

.valueAction = val

Sets -value and triggers -action.

Arguments:

val

A Boolean.

.string

.string = string

The text displayed next to the check mark.

Actions

.action

.action = func

From superclass: View

The action object evaluated whenever the user toggles the state.

Drag and drop

.defaultGetDrag

Returns:

The -value.

.defaultCanReceiveDrag

Returns:

True if the current drag data is a Boolean.

.defaultReceiveDrag

Sets -valueAction to the current drag data.

Inherited instance methods