GridBox#

A GridBox is a GridLayout where the spacing and padding values depend on the style instead of defaulting to 0.

GroupBox#

A GroupBox is a container that groups its children together under a common title.

Properties#

  • enabled: (in bool): Defaults to true. When false, the groupbox can’t be interacted with

  • title (in string): A text written as the title of the group box.

Example#

import { GroupBox , VerticalBox, CheckBox } from "std-widgets.slint";
export component Example inherits Window {
    width: 200px;
    height: 100px;
    GroupBox {
        title: "Groceries";
        VerticalLayout {
            CheckBox { text: "Bread"; checked: true ;}
            CheckBox { text: "Fruits"; }
        }
    }
}