7#include <QtGui/qpa/qplatformtheme.h>
8#include <QtQml/qjsvalue.h>
127 return d->checkState;
133 if (
d->checkState ==
state)
140 if (
d->checked != wasChecked)
147 return d->nextCheckState;
153 d->nextCheckState = callback;
154 emit nextCheckStateChanged();
206 if (
d->nextCheckState.isCallable())
208 else if (
d->tristate)
216#include "moc_qquickcheckbox_p.cpp"
The QJSValue class acts as a container for Qt/JavaScript data types.
The QPalette class contains color groups for each widget state.
Check button that can be toggled on or off.
Qt::CheckState checkState
QPalette defaultPalette() const override
QFont defaultFont() const override
void buttonChange(ButtonChange change) override
void setTristate(bool tristate)
QJSValue getNextCheckState() const
void setNextCheckState(const QJSValue &callback)
Qt::CheckState checkState
bool isTristate() const
\qmlproperty bool QtQuick.Controls::CheckBox::tristate
void setCheckState(Qt::CheckState state)
QQuickCheckBox(QQuickItem *parent=nullptr)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QString state() const
\qmlproperty string QtQuick::Item::state
static QPalette palette(Scope scope)
static QFont font(Scope scope)
Combined button and popup list for selecting options.