输入¶
文本输入、选择、开关等表单控件。
LineEdit 输入框¶
支持清除按钮、密码模式、标签(LineEditLabel)、标签输入(TagLineEdit)等变体。
ComboBox 下拉框¶
Slider 滑块¶
勾选类¶
CheckBox— 复选框(支持三态)RadioButton— 单选ToggleSwitch— 开关
Fluent.CheckBox { text: "记住我"; checked: true }
Fluent.RadioButton { text: "选项 A" }
Fluent.ToggleSwitch { text: "启用"; checked: true }
三态值统一通过 Enums.toggle 访问:state_unchecked、state_partially_checked、state_checked。checked 与 checkState 双向同步;部分勾选态对应 checked: false。
Fluent.CheckBox {
text: "部分选择"
tristate: true
checkState: Fluent.Enums.toggle.state_partially_checked
}
其他¶
SpinBox— 数字步进PinInput— 验证码/PIN 分格输入BeforeAfterSlider— 图片对比滑块
皮肤适配¶
新粗野下:输入框白底黑粗边,聚焦时边框 + 硬阴影转橙;复选框/单选/开关为黑粗边 + 橙选中态。