如何使 Qt 图标(在菜单栏和工具栏中)变大? [英] How to make Qt icon (in menu bar and tool bar) larger?

查看:79
本文介绍了如何使 Qt 图标(在菜单栏和工具栏中)变大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为默认尺寸太小了.有什么办法可以改变吗?谢谢.

I think the default size is too small. Any way to change it? Thanks.

推荐答案

  1. QToolbar 具有 iconSize 属性.

据我所知,更改 QMenu 图标大小的唯一方法是为其创建自定义样式.您可以在此处

As far as I know, the only way to change QMenu icon size is to create a custom style for it. You can read about it here

这篇关于如何使 Qt 图标(在菜单栏和工具栏中)变大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆