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);

  

最新文章

  1. MD5工具类,提供字符串MD5加密、文件MD5值获取(校验)功能
  2. RabbitMQ的几种典型使用场景
  3. Node.js 学习笔记
  4. 订餐系统之定时器Timer不定时
  5. python gui之tkinter语法杂记
  6. adb remount 失败remount failed: Operation not permitted
  7. Hibernate - list()和iterate()的区别
  8. bzoj 1208 宠物收养所--splay
  9. python学习第十八天 --文件操作
  10. 源代码解读Cas实现单点登出(single sign out)功能实现原理--转
  11. ceph 参数说明<转>
  12. CentOS7 PostgreSQL 安装
  13. Katana-CookieAuthenticationMiddleware-源码浅析
  14. css渲染(一) 字体和文本
  15. Flex设置LinkButton的背景色
  16. 20164305 徐广皓 Exp1+ 逆向进阶
  17. 7.Hystrix-服务熔断
  18. Python数据分析笔记
  19. Tomcat分windows版和linux版
  20. rim

热门文章

  1. WebSphere ssl证书公钥少于2048问题处理
  2. [转]使用CMS垃圾收集器产生的问题和解决方案
  3. os模块-subprocess 模块- configpaser 模块
  4. linux git:fatal: HTTP request failed
  5. corePoolSize和maxPoolSize的区别
  6. ProtoBuf 常用序列化/反序列化API 转
  7. Java IO流01-总叙
  8. 如何写java求和源代码
  9. Python Django 之 登录页面
  10. python 最小二乘拟合,反卷积,卡方检验