当前位置:
代码迷
>>
QT开发
>> Qt中如何在运行时更换pushbutton的icon
详细解决方案
Qt中如何在运行时更换pushbutton的icon
热度:
76
发布时间:
2016-04-25 04:31:51.0
Qt中怎么在运行时更换pushbutton的icon
我需要在界面上放置一个PushButton,表示“运行/停止”。
按照正常思路,在点击“运行”以后,需要在其槽函数中,替换该PushButton的图标,改为表示停止的图标。
请教,这更改图标的代码该怎么写?
------解决方案--------------------
探讨
ui->pushButton->setIcon(QIcon(":/mypic.png"));
查看全文
相关解决方案
Response.BinaryWrite((byte[])SqlReader.Item['icon']),该怎么处理
Response.BinaryWrite((byte[])SqlReader.Item['icon']),该如何处理
Response.BinaryWrite((byte[])SqlReader.Item['icon'])解决方法
怎么在HTML中使用图标字体 - icon font
<link rel="shortcut icon" href="favicon.ico" />显示不了图标,该怎么解决
richfaces 四 rich:message as icon with tooltip
最新的超棒免费图标字体(icon font)搜集
Endless icon: 每日都更新的图标集
SuperTabNavigator 设立 colse icon
icon 网站征集
解决:The content of element type "web-app" must match "(icon?display
解决The content of element type "web-app" must match "(icon?display
type="image/x-icon"什么意思啊该如何处理
图标网站 查寻图标 icon
Eclipse 图标(Icon)没法锁定到任务栏
请问有关图像的有关问题!icon.getIcon().getScaledInstance(参数)
怎么合理调用程序的资源如image, icon, cursor之类的
Qt Designer PushButton 布局的时候怎么控制位置
Icon 处理
QT Menu (Icon with multi- rows texts),该怎么处理
Error:(13, 23) No resource found that matches the given name (at 'icon' with val,该如何解决
【有关问题处理】Icon.png pngcrush caught libpng error:Read Error
图标设计工具 背景怎么设置透明 Launcher Icon Generator
Failure retrieving icon,怎么程序获取未安装程序的图标?
Android icon 不同屏幕上尺寸
Touch Email icon on homescreen, fore close.该如何处理
甚至用工具清除合并投掷错误:replace =“android:icon,android:theme”
0基础制作字体 icon
CustomPlugins:Icon
npm run install报错: Could not install from ‘e-icon-picker\dist\symbol.js‘ as it does not contain a pa