当前位置:网站首页>Qt | 控件之QCheckBox
Qt | 控件之QCheckBox
2022-07-16 11:01:00 【InfoQ】
- setIcon();//设置复选框图标
- setStyleSheet();//设置复选框样式、文字样式
"QCheckBox::indicator:enabled:unchecked{image: url(:/image/weigx.png);}"//未勾选图片
"QCheckBox::indicator:enabled:checked{image: url(:/image/yigx.png);}"//已勾选图片
"QCheckBox::indicator:disabled{image: url(:/Resources/image/jinyong.png);}"//禁用图片
"QCheckBox{color:#666666;font-family:Microsoft YaHei UI;font-size:16px;"
"qproperty-alignment: 'AlignVCenter | AlignLeft';}";//字体颜色、字体、大小、对齐方式
- setText(); //设置复选框的文本。
- text(); //返回复选框的显示文本。
- setChecked(); //True表示选中;False表示取消选中。
- isChecked(); //返回复选框是否被选中。
- setTriState(); //设置复选框为一个三态复选框。
- setCheckState(); //设置三态复选框的状态。
边栏推荐
- Web APIs DOM event flow
- An expert, Alibaba biggie quit and brought out the internal "high concurrency system design" learning manual
- js单线程理解笔记-原创
- Error in v-on handler: “ReferenceError: Toast is not defined“
- 【深度学习】4 万字笔记!Yann LeCun 深度学习公开课 125 页干货都在这了
- Why PCB test is needed!
- cv2.resize的坑
- 【快应用】快应用用户协议、隐私政策内容中可以多次跳转,点击返回未能返回上一级页面,该如何处理?
- SFF1602-MHCHXM(海矽美)二极管SFF1602
- 【AGC】增长服务3-App Linking示例
猜你喜欢

Apple商业网站封锁Firefox浏览器

Reverse salary increase, what is this operation?

深度学习(DL, Deep Learning)入门1——LetNet5网络结构

从IT视角审视企业经营,B2B行业CIO谈如何从“成本中心”转到“增长中心”?

我发现了一款高效管理接口文档的神器

微创脑科学上市破发:公司市值143亿港元 微创医疗是大股东
![[golang] slice](/img/53/316533cbdedd2faab5a8e5d632f91b.png)
[golang] slice

【HMS core】【Wallet Kit】【解决方案】华为钱包的客户端示例代码为何无法运行

Apple commercial website blocks Firefox browser

【华为联机对战】下载运行华为官方Unity示例代码,提示鉴权失败并返回错误码100114
随机推荐
无996无内卷,乐视过上了“神仙日子”?
软件测试需要学什么?年薪30W+的测试工程师需要掌握哪些技能?
Analysis and summary of three technical solutions to realize app automation
Error in v-on handler: “ReferenceError: Toast is not defined“
View for recording a temperature curve
antd的工具函数getPrefixCls,获取公共前缀
1.6 method
1.6 方法
[HMS core], [FAQ], [Health Kit] encountered some small problems in the process of integrating sports health services. Today, I share with you (Huawei watch, Bracelet + sports health service problems C
Wechat applet pull-down refresh function --onpulldownrefresh
Bill Gates is about to withdraw from the world's rich list by donating $20billion!
考研人暑期行为大赏top5
10张图教你同步与异步(转载)
从 URL 输入到页面展现到底发生什么?
In the forced update of Huawei applications, occasionally click "exit application" to exit the application
Error-yolov5 pt转onnx报错
What does software testing need to learn? What skills do test engineers with an annual salary of 30w+ need to master?
《經濟日報》點贊RPA領軍企業弘璣,助力金融機構數字化轉型
C language bit field
够速度,才激情!2022 Amazon DeepRacer 7月赛高调来袭