RQCheckbox

class pyreaqtive.widgets.rqcheckbox.RQCheckBox(model, *args, rq_if=None, rq_disabled=None, **kwargs)

Bases: pyreaqtive.widgets.rqwidget.RQWidget, PyQt5.QtWidgets.QCheckBox

Reactive Checkbox Widget.

Parameters
Return type

None

model: pyreaqtive.models.rqbool.RQBool

Model linked to the widget.

__init__(model, *args, rq_if=None, rq_disabled=None, **kwargs)

Constructor.

Parameters
Return type

None

_rq_data_changed()

Slot triggered when the model changes state.

Updates the state of the checkbox

Return type

None

_rq_writing = False

Flag to signal that this widget is triggering the update and is writing to the model

_rq_reading = False

Flag to indicate that the model changed and the widget is reading the model

_toggled()

Slot triggered when the user changes state of this checkbox.

Propagates changes to the model

Return type

None