qt 内置图标使用
2024-10-18 06:58:21
QToolButton *button = new QToolButton(this);
button->resize(100,30);
button->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
QStyle* style = QApplication::style();
QIcon icon = style->standardIcon(QStyle::SP_DriveCDIcon);
button->setIcon(icon);
button->setText(QString("123"));
button->move(100,100);
最新文章
- MD5工具类,提供字符串MD5加密、文件MD5值获取(校验)功能
- RabbitMQ的几种典型使用场景
- Node.js 学习笔记
- 订餐系统之定时器Timer不定时
- python gui之tkinter语法杂记
- adb remount 失败remount failed: Operation not permitted
- Hibernate - list()和iterate()的区别
- bzoj 1208 宠物收养所--splay
- python学习第十八天 --文件操作
- 源代码解读Cas实现单点登出(single sign out)功能实现原理--转
- ceph 参数说明<;转>;
- CentOS7 PostgreSQL 安装
- Katana-CookieAuthenticationMiddleware-源码浅析
- css渲染(一) 字体和文本
- Flex设置LinkButton的背景色
- 20164305 徐广皓 Exp1+ 逆向进阶
- 7.Hystrix-服务熔断
- Python数据分析笔记
- Tomcat分windows版和linux版
- rim