当前位置:
代码迷
>>
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'])解决方法
<link rel="shortcut icon" href="favicon.ico" />显示不了图标,该怎么解决
最新的超棒免费图标字体(icon font)搜集
Endless icon: 每日都更新的图标集
SuperTabNavigator 设立 colse icon
type="image/x-icon"什么意思啊该如何处理
Eclipse 图标(Icon)没法锁定到任务栏
请问有关图像的有关问题!icon.getIcon().getScaledInstance(参数)
怎么合理调用程序的资源如image, icon, cursor之类的
Qt Designer PushButton 布局的时候怎么控制位置
Icon 处理
QT Menu (Icon with multi- rows texts),该怎么处理
【有关问题处理】Icon.png pngcrush caught libpng error:Read Error
Android icon 不同屏幕上尺寸
Touch Email icon on homescreen, fore close.该如何处理
Attempting to badge the application icon but haven't received permission from the user to badge the
li下 application not icon
[@ant-design/icons-angular]: the icon reload-o does not exist or is not
android4.2 camera icon
Overrides the OnInitDialog function, Windows Title, Icon
修改状态栏(StatusBar)图标(icon)(定制自己的状态栏)
Android launcher icon size
[Android SDK 翻译]Icon Design Guidelines (图标设计规范)