Skip to content

CheckBox

Use a CheckBox to let the user select or deselect values, for example in a list with multiple options. Consider using a Switch element instead if the action resembles more something that’s turned on or off.

bool (in-out) default: false

Whether the checkbox is checked or not.

CheckBox {
text: self.checked ? "Checked" : "Not checked";
checked: true;
}
slint

bool default: true

Defaults to true. When false, the checkbox can’t be pressed.

bool (out) default: false

Set to true when the checkbox has keyboard focus.

string default: ""

The text written next to the checkbox.

CheckBox {
text: "CheckBox with text";
}
slint

The checkbox value changed

CheckBox {
text: "CheckBox";
toggled() => {
debug("CheckBox checked: ", self.checked);
}
}
slint

© 2025 SixtyFPS GmbH