GroupBox
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"; } } }}slint
GroupBox 是一个容器,将其子元素归组在一个公共标题下。
content-padding
Section titled “content-padding”lengthdefault: Depends on the style
内容整体布局的内边距。此单一值 应用于所有边。
enabled
Section titled “enabled”booldefault: true
当为 false 时,无法与分组框交互
stringdefault: ""
作为分组框标题显示的文本。
© 2026 SixtyFPS GmbH